Skip to content

Commit e520e93

Browse files
Matthew Wilcox (Oracle)torvalds
authored andcommitted
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>
1 parent 0f8e2db commit e520e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/filemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2490,7 +2490,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf)
24902490
if (!page) {
24912491
if (fpin)
24922492
goto out_retry;
2493-
return vmf_error(-ENOMEM);
2493+
return VM_FAULT_OOM;
24942494
}
24952495
}
24962496

0 commit comments

Comments
 (0)