public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] fuse: fixes for writepages
@ 2013-09-19 16:11 Miklos Szeredi
  2013-09-19 16:11 ` [PATCH 1/3] fuse: writepages: fix aggregation Miklos Szeredi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Miklos Szeredi @ 2013-09-19 16:11 UTC (permalink / raw)
  To: mpatlasov; +Cc: linux-fsdevel, linux-kernel

Maxim,

Please review and test these.  I've appended them to writepages.v2 and for-next.

Here's a test patch for the rewrites stuff.  It simply disables the waiting in
fuse_page_mkwrite() and is quite effective in generating rewrites in my
testcase.

Thanks,
Miklos

---
 fs/fuse/file.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1498,6 +1498,7 @@ static void fuse_writepage_end(struct fu
 
 	mapping_set_error(inode->i_mapping, req->out.h.error);
 	spin_lock(&fc->lock);
+	int count = 0;
 	while (req->misc.write.next) {
 		struct fuse_req *next = req->misc.write.next;
 		req->misc.write.next = next->misc.write.next;
@@ -1505,7 +1506,10 @@ static void fuse_writepage_end(struct fu
 		list_add(&next->writepages_entry, &fi->writepages);
 		list_add_tail(&next->list, &fi->queued_writes);
 		fuse_flush_writepages(inode);
+		count++;
 	}
+	if (count)
+		printk("rewrite: %i\n", count);
 	fi->writectr--;
 	fuse_writepage_finish(fc, req);
 	spin_unlock(&fc->lock);
@@ -1884,7 +1888,7 @@ static int fuse_page_mkwrite(struct vm_a
 		return VM_FAULT_NOPAGE;
 	}
 
-	fuse_wait_on_page_writeback(inode, page->index);
+	//fuse_wait_on_page_writeback(inode, page->index);
 	return VM_FAULT_LOCKED;
 }
 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-20  8:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19 16:11 [PATCH 0/3] fuse: fixes for writepages Miklos Szeredi
2013-09-19 16:11 ` [PATCH 1/3] fuse: writepages: fix aggregation Miklos Szeredi
2013-09-19 16:11 ` [PATCH 2/3] fuse: writepages: handle same page rewrites Miklos Szeredi
2013-09-19 16:11 ` [PATCH 3/3] fuse: writepage: skip already in flight Miklos Szeredi
2013-09-20  8:06 ` [PATCH 0/3] fuse: fixes for writepages Maxim Patlasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox