diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2020-04-01 21:04:53 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-04-02 09:35:26 -0700 |
commit | e520e932dcc607fc857d27ddd98482fcaf090d7a (patch) | |
tree | 3ecd087d5291e4cb65f37a856794b41bd2721222 | |
parent | 0f8e2db4ead59a79db4cd79d978f8a3cf85e870c (diff) |
mm/filemap.c: use vm_fault error code directly
Use VM_FAULT_OOM instead of indirecting through vmf_error(-ENOMEM).
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Aneesh Kumar K.V <[email protected]>
Cc: Pankaj Gupta <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 385826aa73d7..f62aa9569e48 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2490,7 +2490,7 @@ retry_find: if (!page) { if (fpin) goto out_retry; - return vmf_error(-ENOMEM); + return VM_FAULT_OOM; } } |