diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2019-01-05 01:00:29 +0530 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-01-07 22:48:48 +0100 |
commit | c64a2b0516a02361d8deb1f038647c29020d0852 (patch) | |
tree | 59a20f76b411ad97d35d8368829d33e7a4755b37 /fs/ceph | |
parent | 02b2f549d502b46e68b97ea1452fb8853b3327dd (diff) | |
download | linux-c64a2b0516a02361d8deb1f038647c29020d0852.tar.bz2 |
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/ceph')
-rw-r--r-- | fs/ceph/addr.c | 5 |
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) |