summaryrefslogtreecommitdiff
path: root/fs/dax.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2019-01-05 00:54:11 +0530
committerDan Williams <dan.j.williams@intel.com>2019-02-12 20:22:45 -0800
commitc9aed74e6a2762c32e9b84fcd5e1b9bc451ffdfd (patch)
treedf9b5b3f16b4dc429e0b174d1269a7d7bb42a875 /fs/dax.c
parentd13937116f1e82bf508a6325111b322c30c85eb9 (diff)
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);
}
/*