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) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Link: http://lkml.kernel.org/r/20200318140253.6141-2-willy@infradead.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0f8e2db4ea
commit
e520e932dc
1 changed files with 1 additions and 1 deletions
|
@ -2490,7 +2490,7 @@ retry_find:
|
|||
if (!page) {
|
||||
if (fpin)
|
||||
goto out_retry;
|
||||
return vmf_error(-ENOMEM);
|
||||
return VM_FAULT_OOM;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue