Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1016485imu; Fri, 4 Jan 2019 11:21:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN5lAYKMOGH/ZKWT//dfSmBqeokPDJ7xt+ghi0E7FNIs5XjU9X2sFx/4jBRKEUAaleDgECiX X-Received: by 2002:a17:902:d697:: with SMTP id v23mr10648520ply.261.1546629697974; Fri, 04 Jan 2019 11:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546629697; cv=none; d=google.com; s=arc-20160816; b=LMzDkwNH65EFzEj+t2Y87NCVj5zd+aPJrqhAyEIt68MAZEKdLdCTI9RrDjEuXIFaeo 6i1Ed3iRS+bxEUasPuTXQLeEHBGiixXu12VLOzwuqhZUPUiAvPkjD5OUDk4jB59aLu5I rQ+bJP8c7djqwoF0J+Y30DQcL6sn8BpKLQd2XJTADJLyRmN/rM28jDHhpCDzrUjusPqi ZQteLuCJpOjXU1uFrlRPC4e+6rqN4uODkvcM2iKgdxJFVOCpfRV2+UFIriB/fvu0cT9b to6stJzBQ6GUUO1d873nt7BY3mHrlO2R/xrguBspfAzwv6CIcE6RGJjYeuW0a3whAU5x TKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=xA/cWPMCOgUpJyRRvPpDyTw/PWzyeClgpj9SwOIddGo=; b=Ts3eSTNdcfc7FO3BPvvDGCZfvmV95p70yjfUxPoH7fDrXSmpDUbtbZi/+eJEhLsOp5 +UcH1HIU+fhCE+y/GTvTopPHG9rxi4eVtpu2M/1uaFM/xVj9ywS+k2+56WRNzEiH+4bI ffqJ/gMqMTcEud/0T+vhyjW60ZaU7f1nB6sovoLwdBqgal7OOPYZaBdEHpPrG5xFo/3A 18S9K01Bw1GOr+DHXDBjkjz7B6bm5czcCKaZX7plW4hcER0Bk3fEFY7oVOha6gn2ioBv KI98BT0CbYzrRoE9xSK/UL4GCYuHXskSVOBJe1no1kRdNrdroeuNCEM0GOhlpslYadbK VTsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NM4QQkfF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89si11291732pfj.207.2019.01.04.11.21.23; Fri, 04 Jan 2019 11:21:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NM4QQkfF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726014AbfADTUN (ORCPT + 99 others); Fri, 4 Jan 2019 14:20:13 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38249 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfADTUN (ORCPT ); Fri, 4 Jan 2019 14:20:13 -0500 Received: by mail-pg1-f194.google.com with SMTP id g189so17871873pgc.5; Fri, 04 Jan 2019 11:20:12 -0800 (PST) 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=xA/cWPMCOgUpJyRRvPpDyTw/PWzyeClgpj9SwOIddGo=; b=NM4QQkfF13okOwjCVpE6YfbGOwxKZ7GDhbs14YiL6JzUV7XFJK8/au5uU6ksUuBDMC ZZWQKRvnH3jE80ys9M+arSQOR2jE+YI38SeVJj9nFqZYb72iN/l3R56e0a8yG49QUxvn MPVO+WQpmCzWrHM+QuOGRU5j5AwkxLxVSVUq3fkTrpSScB/Ds1JxPCIa4NLVEED9X6Sf pwTXzhrRpaxu4vKEn7pPLmPx5KwLD9X+k3WUjBK9vxqcsrR4Ej8ElIOtk7U91kLLmFhV oifUWMefGPWk9g5mhy6kBcDBBCERrU+NcozPOvl4G5GPujmlqRT5mTS9C9uARv49oHkD OX6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=xA/cWPMCOgUpJyRRvPpDyTw/PWzyeClgpj9SwOIddGo=; b=UN8i+QDEnWSC68dtI/ndCryCQf1UKSz/umSZ7PV69wJj/PKA9mf+DixtvmQlKFgjxW v8nJAMaZXnGSeqLle0tvgUsAzG5mhl7jHbvAJUgHiH9fGbB1+sxV8m2lKIxtMYB4+YZ4 LO5Mng8LV/Qnk9zkSth+RFLObRYylSlrB+vYYIKjnYSQoG7Lu7Wd3Qtzg4Jox9oX1owu /LGaUGYsQBsyCo5lOraEvWdADhlTVX0YAZ5YzV3/M/8QyBqD28/GHlIGqAfC3H7Robr4 3r5SsAgFPifYSkP22N3NbhLXbCjRUFrGzMyyBxb/7NPuirA4+ZdwIlAbJgvGwXc8qOct xyOw== X-Gm-Message-State: AA+aEWZtesxO9hznb8iwk1sOdKCEquSVU4kE9aD26aYqDAFyUu1FWPN6 5yBjx4+Q7GDkeMJT/aR9uSu75B9B X-Received: by 2002:a62:1112:: with SMTP id z18mr53074916pfi.173.1546629611752; Fri, 04 Jan 2019 11:20:11 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([49.207.48.173]) by smtp.gmail.com with ESMTPSA id q1sm97267210pgs.14.2019.01.04.11.20.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Jan 2019 11:20:10 -0800 (PST) Date: Sat, 5 Jan 2019 00:54:11 +0530 From: Souptick Joarder To: willy@infradead.org, zwisler@kernel.org, jack@suse.cz, viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/dax: Convert to use vmf_error() Message-ID: <20190104192410.GA11084@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This code is converted to use vmf_error(). Signed-off-by: Souptick Joarder --- fs/dax.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 48132ec..ed39161 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1220,9 +1220,7 @@ static vm_fault_t dax_fault_return(int error) { if (error == 0) return VM_FAULT_NOPAGE; - if (error == -ENOMEM) - return VM_FAULT_OOM; - return VM_FAULT_SIGBUS; + return vmf_error(error); } /* -- 1.9.1