diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2018-10-26 18:08:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-26 19:26:35 -0400 |
commit | 3c0513243a4a07ebad2d59f3d972bef483818ec6 (patch) | |
tree | 8bc6832ea301129a0f2db1b0c3d1f24dbe8d3218 /mm/filemap.c | |
parent | 544db7597ad0fd1ceebf656e2808a209d46ccd9e (diff) |
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 'mm/filemap.c')
-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: | |||
2596 | * system is low on memory, or a problem occurs while trying | 2596 | * system is low on memory, or a problem occurs while trying |
2597 | * to schedule I/O. | 2597 | * to schedule I/O. |
2598 | */ | 2598 | */ |
2599 | if (error == -ENOMEM) | 2599 | return vmf_error(error); |
2600 | return VM_FAULT_OOM; | ||
2601 | return VM_FAULT_SIGBUS; | ||
2602 | 2600 | ||
2603 | page_not_uptodate: | 2601 | page_not_uptodate: |
2604 | /* | 2602 | /* |