mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:10:51 +07: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 <jlayton@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
61c12b49e1
commit
9183976ef1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user