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>
This commit is contained in:
parent
02b2f549d5
commit
c64a2b0516
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user