diff options
| author | Souptick Joarder <jrdr.linux@gmail.com> | 2019-01-04 14:30:29 -0500 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2019-01-07 16:48:48 -0500 |
| commit | c64a2b0516a02361d8deb1f038647c29020d0852 (patch) | |
| tree | 59a20f76b411ad97d35d8368829d33e7a4755b37 | |
| parent | 02b2f549d502b46e68b97ea1452fb8853b3327dd (diff) | |
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>
| -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) | |||
| 1494 | if (err < 0 || off >= i_size_read(inode)) { | 1494 | if (err < 0 || off >= i_size_read(inode)) { |
| 1495 | unlock_page(page); | 1495 | unlock_page(page); |
| 1496 | put_page(page); | 1496 | put_page(page); |
| 1497 | if (err == -ENOMEM) | 1497 | ret = vmf_error(err); |
| 1498 | ret = VM_FAULT_OOM; | ||
| 1499 | else | ||
| 1500 | ret = VM_FAULT_SIGBUS; | ||
| 1501 | goto out_inline; | 1498 | goto out_inline; |
| 1502 | } | 1499 | } |
| 1503 | if (err < PAGE_SIZE) | 1500 | if (err < PAGE_SIZE) |
