Skip to contentSkip to conversation

fs/dax.c: Use vmf_error() helper

PATCH New zhong jiang 1 participant 1 message Sep 29, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/dax.c: Use vmf_error() helper

These codes can be replaced with new inline vmf_error().

---
 fs/dax.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
fs/dax.c +2 -3
index b68ce48..e732f70 100644
@@ -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);
 }
 
 /*
Signature · 1 line
1.7.12.4