summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-05-25 12:57:50 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-08-11 11:38:26 +0200
commit9183976ef1c858c289b09066fd57aae51b86653c (patch)
treed9a30b05e31446929b303c411f93c3bd7fd37d2a /fs
parentfuse: Dont call set_page_dirty_lock() for ITER_BVEC pages for async_dio (diff)
downloadlinux-9183976ef1c858c289b09066fd57aae51b86653c.tar.xz
linux-9183976ef1c858c289b09066fd57aae51b86653c.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/fuse/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 810ed4f99e38..ab60051be6e5 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1669,6 +1669,7 @@ err_nofile:
err_free:
fuse_request_free(req);
err:
+ mapping_set_error(page->mapping, error);
end_page_writeback(page);
return error;
}