summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2018-10-27 00:08:47 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-27 01:26:35 +0200
commit3c0513243a4a07ebad2d59f3d972bef483818ec6 (patch)
tree8bc6832ea301129a0f2db1b0c3d1f24dbe8d3218
parenthugetlb: introduce generic version of huge_ptep_get (diff)
downloadlinux-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.c4
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:
/*