Skip to content

Commit

Permalink
fuse: set mapping error in writepage_locked when it fails
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jtlayton authored and Miklos Szeredi committed Aug 11, 2017
1 parent 61c12b4 commit 9183976
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,7 @@ static int fuse_writepage_locked(struct page *page)
err_free:
fuse_request_free(req);
err:
mapping_set_error(page->mapping, error);
end_page_writeback(page);
return error;
}
Expand Down

0 comments on commit 9183976

Please sign in to comment.