Commit 3c051324 authored by Souptick Joarder's avatar Souptick Joarder Committed by Linus Torvalds

mm/filemap.c: use vmf_error()

These codes can be replaced with new inline vmf_error().

Link: http://lkml.kernel.org/r/20180927171411.GA23331@jordon-HP-15-Notebook-PCSigned-off-by: default avatarSouptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 544db759
...@@ -2596,9 +2596,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf) ...@@ -2596,9 +2596,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf)
* system is low on memory, or a problem occurs while trying * system is low on memory, or a problem occurs while trying
* to schedule I/O. * to schedule I/O.
*/ */
if (error == -ENOMEM) return vmf_error(error);
return VM_FAULT_OOM;
return VM_FAULT_SIGBUS;
page_not_uptodate: page_not_uptodate:
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment