Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1622056

[PATCH v2 15/17] fuse: set mapping error in writepage_locked when it fails

From Jeff Layton <jlayton@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 15/17] fuse: set mapping error in writepage_locked when it fails
Date 2017-04-12 14:10 +0200
Message-ID <tvpfZ-4hS-33@gated-at.bofh.it> (permalink)
References <tvpfY-4hS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This ensures that we see errors on fsync when writeback fails.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
 fs/fuse/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 7972fdb189bf..c098baf668e6 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1672,6 +1672,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;
 }
-- 
2.9.3

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 15/17] fuse: set mapping error in writepage_locked when it fails Jeff Layton <jlayton@redhat.com> - 2017-04-12 14:10 +0200

csiph-web