fuse: set mapping error in writepage_locked when it fails
Subsystems (2)
PATCH 1/1 fuse: set mapping error in writepage_locked when it fails
This ensures that we see errors on fsync when writeback fails.
--- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+)
fs/fuse/file.c +1 -0
@@ -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; }
Signature · 1 line
2.9.4
Quoted 5 lines · Jeff Layton
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]>
This is currently the only fuse patch for 4.12. Do you plan to send a pull to Linus with related things? If so then please feel free to take this and add my
Thanks,
Miklos
Quoted 19 lines
--- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+)fs/fuse/file.c +1
-1@@ -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; } --2.9.4
Quoted 7 lines · Miklos Szeredi
Quoted 5 lines · Jeff Layton
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]>
Quoted 6 lines
This is currently the only fuse patch for 4.12. Do you plan to send a pull to Linus with related things? If so then please feel free to take this and add my
Acked-by Miklos Szeredi <[email protected]>
No, I wasn't planning to send a PR to Linus.
I was really expecting these to go into v4.13 anyway (and maybe linux- next for now). I don't think it'll hurt to merge them into v4.12 though if you end up with other FUSE patches for v4.12 and want to merge it earlier.
Quoted 4 lines
Quoted 4 lines
--- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+)
Quoted 15 lines
Quoted 13 lines
fs/fuse/file.c +1
-1@@ -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; } --Quoted 2 lines
2.9.4
Thanks,
Signature · 1 line
Jeff Layton <[email protected]>