mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-29 18:43:59 +00:00
fs/dax: Convert to use vmf_error()
This code is converted to use vmf_error(). Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
d13937116f
commit
c9aed74e6a
1 changed files with 1 additions and 3 deletions
4
fs/dax.c
4
fs/dax.c
|
@ -1220,9 +1220,7 @@ static vm_fault_t dax_fault_return(int error)
|
||||||
{
|
{
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
return VM_FAULT_NOPAGE;
|
return VM_FAULT_NOPAGE;
|
||||||
if (error == -ENOMEM)
|
return vmf_error(error);
|
||||||
return VM_FAULT_OOM;
|
|
||||||
return VM_FAULT_SIGBUS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue