Skip to content

Commit c9aed74

Browse files
Souptick Joarderdjbw
authored andcommitted
fs/dax: Convert to use vmf_error()
This code is converted to use vmf_error(). Signed-off-by: Souptick Joarder <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent d139371 commit c9aed74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/dax.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,7 @@ static vm_fault_t dax_fault_return(int error)
12201220
{
12211221
if (error == 0)
12221222
return VM_FAULT_NOPAGE;
1223-
if (error == -ENOMEM)
1224-
return VM_FAULT_OOM;
1225-
return VM_FAULT_SIGBUS;
1223+
return vmf_error(error);
12261224
}
12271225

12281226
/*

0 commit comments

Comments
 (0)