提交 c9aed74e 编写于 作者: S Souptick Joarder 提交者: Dan Williams

fs/dax: Convert to use vmf_error()

This code is converted to use vmf_error().
Signed-off-by: NSouptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: NJan Kara <jack@suse.cz>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 d1393711
...@@ -1220,9 +1220,7 @@ static vm_fault_t dax_fault_return(int error) ...@@ -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;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册