提交 9183976e 编写于 作者: J Jeff Layton 提交者: Miklos Szeredi

fuse: set mapping error in writepage_locked when it fails

This ensures that we see errors on fsync when writeback fails.
Signed-off-by: NJeff Layton <jlayton@redhat.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NJan Kara <jack@suse.cz>
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 61c12b49
...@@ -1669,6 +1669,7 @@ static int fuse_writepage_locked(struct page *page) ...@@ -1669,6 +1669,7 @@ static int fuse_writepage_locked(struct page *page)
err_free: err_free:
fuse_request_free(req); fuse_request_free(req);
err: err:
mapping_set_error(page->mapping, error);
end_page_writeback(page); end_page_writeback(page);
return error; return error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册