diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2018-10-27 00:08:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-27 01:26:35 +0200 |
commit | 3c0513243a4a07ebad2d59f3d972bef483818ec6 (patch) | |
tree | 8bc6832ea301129a0f2db1b0c3d1f24dbe8d3218 | |
parent | hugetlb: introduce generic version of huge_ptep_get (diff) | |
download | linux-3c0513243a4a07ebad2d59f3d972bef483818ec6.tar.xz linux-3c0513243a4a07ebad2d59f3d972bef483818ec6.zip |
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-PC
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | mm/filemap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 0b8c6de6d995..3968da1f7f5a 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2596,9 +2596,7 @@ no_cached_page: * system is low on memory, or a problem occurs while trying * to schedule I/O. */ - if (error == -ENOMEM) - return VM_FAULT_OOM; - return VM_FAULT_SIGBUS; + return vmf_error(error); page_not_uptodate: /* |