summaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2019-01-04 20:24:11 +0100
committerDan Williams <dan.j.williams@intel.com>2019-02-13 05:22:45 +0100
commitc9aed74e6a2762c32e9b84fcd5e1b9bc451ffdfd (patch)
treedf9b5b3f16b4dc429e0b174d1269a7d7bb42a875 /fs/dax.c
parentLinux 5.0-rc6 (diff)
downloadlinux-c9aed74e6a2762c32e9b84fcd5e1b9bc451ffdfd.tar.xz
linux-c9aed74e6a2762c32e9b84fcd5e1b9bc451ffdfd.zip
fs/dax: Convert to use vmf_error()
This code is converted to use vmf_error(). Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/dax.c')
-rw-r--r--fs/dax.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/dax.c b/fs/dax.c
index 6959837cc465..7865d9080085 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);
}
/*