From patchwork Wed Jun 20 17:20:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10478013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5583160532 for ; Wed, 20 Jun 2018 17:18:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 396312094F for ; Wed, 20 Jun 2018 17:18:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E4A628138; Wed, 20 Jun 2018 17:18:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD82927FE4 for ; Wed, 20 Jun 2018 17:18:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CB4B76B0003; Wed, 20 Jun 2018 13:18:25 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C3C136B0006; Wed, 20 Jun 2018 13:18:25 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B053B6B0007; Wed, 20 Jun 2018 13:18:25 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f69.google.com (mail-pl0-f69.google.com [209.85.160.69]) by kanga.kvack.org (Postfix) with ESMTP id 6A4256B0003 for ; Wed, 20 Jun 2018 13:18:25 -0400 (EDT) Received: by mail-pl0-f69.google.com with SMTP id t19-v6so140675plo.9 for ; Wed, 20 Jun 2018 10:18:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:mime-version:content-disposition:user-agent; bh=j52Yr0A5UIxEusH9kvhYKpenjzDrvVggXNJ/txoGpjo=; b=fw+W4VItXoAegBI3XVyUWl8Des9b4r3DpRB0mc1SBMRuwrklWspKScO4KVyQfAl9QF 8nsUpTBi1kuEYrS71V49Agk6R6SSAVYRNy+CrGertehKZIKmXzOJZlFpM2cgjO0DraAh IYR+OLq2EV3FLHh4Twjs+nbwiFyBAJjRpu1hRgD57Z9kfM+5dLRood98992iKnFcIa4v Pc2Sm8Fx+lZlL77umN9SJJm9vTEErwzS7RwULfUH1YhAyFVVqkdg6Hsu+r/Kh9R5lG1q HjqjODBjuL1zIzdouut1jry2o4Fe4INm5uDbSlU7HGxwfHympdq/tyFxfzmJ9r1E226o aAww== X-Gm-Message-State: APt69E3SdvDBx8KCBwJOFxUu5py+NGE2i83Y+PvgDF7oNpce1wYykgJx QCmzwZ3OQkbpG3RKOK2hBLSi9yzzDfY0iPJJ6CToZ4y2z4ZtCaq11Mi7UzTT3E4RQBECdh300xs x2BXa/6FZa5AW7A3gKSgS0v2NTcOg5OqTWiY1MhHHB2UXWQK8IwbcgXJ+6kcyuEcwsXYrNbP9f7 b3u6+7W5eVD2Zs3ojtpTlBvcDRvxieeFFVqTbMtIUqmP1atPxUK6GkPl8Ma+PAN2c/lpGWo67bj rzc+rpyC1/xwtfD8P6Dd3NSUB+jgkH2cu2FQz97NEHCdkkqjTGJDN53lOtkxrGQKcfq1eX9JoGz NeJYoQgdkpRqHB80mLckSeNokhdsbxna/Ww+UzAG7Mo6loPT9ue7CamY6+O1CsM3Y26llfJiMAh C X-Received: by 2002:a17:902:8a81:: with SMTP id p1-v6mr24146863plo.33.1529515105136; Wed, 20 Jun 2018 10:18:25 -0700 (PDT) X-Received: by 2002:a17:902:8a81:: with SMTP id p1-v6mr24146826plo.33.1529515104468; Wed, 20 Jun 2018 10:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529515104; cv=none; d=google.com; s=arc-20160816; b=zqR7ECpvF0TJhV6j8DcPq8JNhYzycpC0fF7BKBrrbwqIjgG/DlB0cuTbKJ7xxajKoB qtLmjndN+u1yFSMbL4Q11/7OVwms8sElg7G8TPAJLLYlTw9bDcQwfkyUBMgOf3SdZEZ8 vhNGNM0zHTaJrE8vjB34DpMXNuRbBTa6go4veEF4RsF3SR+FCQD3o6hDst4rIbSWNzI4 nBS1wm7GJvUWKg4ZXJMdUs6W1+i2T73R3CJUtuvbU5cB38rgJxV93o0QM0tJL8ym6zq1 n6Tz5ZSMdUjWNDl9fpSDgdJUq3bI1w+49LMrgeKvkLDL7Z2RfJobSx9eUMZstlemiRco 0Ynw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=j52Yr0A5UIxEusH9kvhYKpenjzDrvVggXNJ/txoGpjo=; b=ktu4KhwczuMUzEVleKNjvLARpmAZVUMpqfrlnmfVYdeh67B87M34v7xuUAYsmLsEyV E4ovnPwsRho0OXWsfI0r5Ou3vuykz87l0Gpoxxou2IV3qCiJH2tUCLWtRjxI5eDfOQg6 jgTGHlHozd9srsmSwub8uac7VlDKwuzyqN1hz39hKM56kqTEEmABspaDDG8gXCWWCg7u p4N0q0IyAIvpv6d+yPIXqdj87uaCWUrSAO4Or5nXaIqfDGHoIAfIq6SdIOTGkbC9cksg 0IZCi6tb8PeFFrSgMqeQj0jKeP4Z121je2xkomfQKvHwc2RO5yXds7TkoU/sbLssyt5I f/sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=td6gU1rS; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r78-v6sor826238pfa.49.2018.06.20.10.18.24 for (Google Transport Security); Wed, 20 Jun 2018 10:18:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=td6gU1rS; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=j52Yr0A5UIxEusH9kvhYKpenjzDrvVggXNJ/txoGpjo=; b=td6gU1rSZN+RiSu0TKGfj7gR9eGQmrwm9iA6nhIxwRBDA6uLzpOWXzMOXh1CZE8wqE H0SNlfJ1h4HcQfS2p+A3+ulPwUEf8zTvNk8g9CF4+SCqUfMlrGXFhJiVSg3DT0a4npc8 jEla8CNW0GRebsjLUjgsZl/iUjGvif/3HtjsqZ7OFbXxpcH4+TY8UniDkp7ZeFQBxsJn QaREKh//8YSileIhERK10f561l58Us9YMuUDVLlRuyPJAh+GasyaglfIXKUE3d8SrDFU 07Q/rX0ojiXftnqGK8iBXfooX8Elt82M3aMELSNzBTxpzifPoThn33pwJmw58InnS7Jq kT4A== X-Google-Smtp-Source: ADUXVKLhR6Df22PD3tAbqhRub5w8X7Ko/0VSLINyNCNudeIGa+N+gqjNc2poJxz2oQYT+c8mQ0/oPw== X-Received: by 2002:a62:a8e:: with SMTP id 14-v6mr23704829pfk.57.1529515103647; Wed, 20 Jun 2018 10:18:23 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([49.205.219.226]) by smtp.gmail.com with ESMTPSA id g8-v6sm3241638pgq.69.2018.06.20.10.18.21 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jun 2018 10:18:22 -0700 (PDT) Date: Wed, 20 Jun 2018 22:50:46 +0530 From: Souptick Joarder To: willy@infradead.org, dan.j.williams@intel.com, jack@suse.cz, kirill.shutemov@linux.intel.com, mhocko@suse.com, akpm@linux-foundation.org, ross.zwisler@linux.intel.com, viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] include: dax: new-return-type-vm_fault_t Message-ID: <20180620172046.GA27894@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. commit 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder --- include/linux/dax.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/dax.h b/include/linux/dax.h index 7fddea8..11852d2 100644 --- a/include/linux/dax.h +++ b/include/linux/dax.h @@ -122,7 +122,7 @@ size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, ssize_t dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter, const struct iomap_ops *ops); -int dax_iomap_fault(struct vm_fault *vmf, enum page_entry_size pe_size, +vm_fault_t dax_iomap_fault(struct vm_fault *vmf, enum page_entry_size pe_size, pfn_t *pfnp, int *errp, const struct iomap_ops *ops); vm_fault_t dax_finish_sync_fault(struct vm_fault *vmf, enum page_entry_size pe_size, pfn_t pfn);