[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180927171411.GA23331@jordon-HP-15-Notebook-PC>
Date: Thu, 27 Sep 2018 22:44:12 +0530
From: Souptick Joarder <jrdr.linux@...il.com>
To: willy@...radead.org, akpm@...ux-foundation.org, jack@...e.cz,
mgorman@...hsingularity.net, ak@...ux.intel.com, jlayton@...nel.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: [PATCH] mm/filemap.c: Use vmf_error()
These codes can be replaced with new inline vmf_error().
Signed-off-by: Souptick Joarder <jrdr.linux@...il.com>
---
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
Powered by blists - more mailing lists