summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-05-25 06:57:50 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2017-08-11 11:38:26 +0200
commit9183976ef1c858c289b09066fd57aae51b86653c (patch)
treed9a30b05e31446929b303c411f93c3bd7fd37d2a /fs/fuse
parent61c12b49e1c9c77d7a1bcc161de540d0fd21cf0c (diff)
downloadlinux-9183976ef1c858c289b09066fd57aae51b86653c.tar.bz2
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/fuse')
-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;
}