These codes can be replaced with new inline vmf_error(). Signed-off-by: Souptick Joarder <jrdr.linux@xxxxxxxxx> --- mm/filemap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 52517f2..7d04d7c 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2581,9 +2581,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf) * 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: /* -- 1.9.1