projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
544db75
)
mm/filemap.c: use vmf_error()
author
Souptick Joarder
<
[email protected]
>
Fri, 26 Oct 2018 22:08:47 +0000
(15:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 26 Oct 2018 23:26:35 +0000
(16:26 -0700)
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 <
[email protected]
>
Reviewed-by: Andrew Morton <
[email protected]
>
Reviewed-by: Jan Kara <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/filemap.c
patch
|
blob
|
history
diff --git
a/mm/filemap.c
b/mm/filemap.c
index 0b8c6de6d9952fb58d67a32c43c167f6520aece9..3968da1f7f5a10c373e396f334b1f68ff3b08443 100644
(file)
--- 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:
/*