summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2019-01-04 20:30:29 +0100
committerIlya Dryomov <idryomov@gmail.com>2019-01-07 22:48:48 +0100
commitc64a2b0516a02361d8deb1f038647c29020d0852 (patch)
tree59a20f76b411ad97d35d8368829d33e7a4755b37 /fs
parentlibceph: allow setting abort_on_full for rbd (diff)
downloadlinux-c64a2b0516a02361d8deb1f038647c29020d0852.tar.xz
linux-c64a2b0516a02361d8deb1f038647c29020d0852.zip
ceph: use vmf_error() in ceph_filemap_fault()
This code is converted to use vmf_error(). Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/addr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 5d0c05e288cc..a47c541f8006 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -1494,10 +1494,7 @@ static vm_fault_t ceph_filemap_fault(struct vm_fault *vmf)
if (err < 0 || off >= i_size_read(inode)) {
unlock_page(page);
put_page(page);
- if (err == -ENOMEM)
- ret = VM_FAULT_OOM;
- else
- ret = VM_FAULT_SIGBUS;
+ ret = vmf_error(err);
goto out_inline;
}
if (err < PAGE_SIZE)