mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
fuse: set mapping error in writepage_locked when it fails
This ensures that we see errors on fsync when writeback fails. Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
This commit is contained in:
parent
61c12b49e1
commit
9183976ef1
1 changed files with 1 additions and 0 deletions
|
|
@ -1669,6 +1669,7 @@ err_nofile:
|
|||
err_free:
|
||||
fuse_request_free(req);
|
||||
err:
|
||||
mapping_set_error(page->mapping, error);
|
||||
end_page_writeback(page);
|
||||
return error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue