Commit 9183976e authored by Jeff Layton's avatar Jeff Layton Committed by 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: default avatarJeff Layton <jlayton@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 61c12b49
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment