mm/filemap.c: Use vmf_error()
Subsystems (2)
PATCH 1/1 mm/filemap.c: Use vmf_error()
These codes can be replaced with new inline vmf_error().
Signed-off-by Souptick Joarder <[email protected]>
--- mm/filemap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
mm/filemap.c +1 -3
@@ -2581,9 +2581,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf)* system is low on memory, or a problem occurs while trying * to schedule I/O. */ -if (error == -ENOMEM ) -return VM_FAULT_OOM ; -return VM_FAULT_SIGBUS ; +return vmf_error (error); page_not_uptodate:/*
Signature · 1 line
1.9.1
Quoted 3 lines · Souptick Joarder
These codes can be replaced with new inline
vmf_error().Signed-off-by Souptick Joarder <[email protected]>
Looks good. You can add:
Reviewed-by Jan Kara <[email protected]>
Honza
Quoted 22 lines
--- mm/filemap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)mm/filemap.c +1
-3@@ -2581,9 +2581,7 @@ vm_fault_t filemap_fault(struct vm_fault *vmf)* system is low on memory, or a problem occurs while trying * to schedule I/O. */ -if (error == -ENOMEM ) -return VM_FAULT_OOM ; -return VM_FAULT_SIGBUS ; +return vmf_error (error); page_not_uptodate:/* Signature · 1 line
1.9.1
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR