* [PATCH] fs/dax.c: Use vmf_error() helper
@ 2018-09-29 5:17 zhong jiang
0 siblings, 0 replies; only message in thread
From: zhong jiang @ 2018-09-29 5:17 UTC (permalink / raw)
To: jack, viro; +Cc: zwisler, mawilcox, linux-fsdevel, linux-kernel
These codes can be replaced with new inline vmf_error().
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
fs/dax.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/dax.c b/fs/dax.c
index b68ce48..e732f70 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -1311,9 +1311,8 @@ static vm_fault_t dax_fault_return(int error)
{
if (error == 0)
return VM_FAULT_NOPAGE;
- if (error == -ENOMEM)
- return VM_FAULT_OOM;
- return VM_FAULT_SIGBUS;
+
+ return vmf_error(error);
}
/*
--
1.7.12.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-29 11:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-29 5:17 [PATCH] fs/dax.c: Use vmf_error() helper zhong jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).