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


Groups > linux.kernel > #1622056 > unrolled thread

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

Started byJeff Layton <jlayton@redhat.com>
First post2017-04-12 14:10 +0200
Last post2017-04-12 14:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [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

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

FromJeff Layton <jlayton@redhat.com>
Date2017-04-12 14:10 +0200
Subject[PATCH v2 15/17] fuse: set mapping error in writepage_locked when it fails
Message-ID<tvpfZ-4hS-33@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web