]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fuse: writepages: fix aggregation
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Oct 2013 14:44:53 +0000 (16:44 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Oct 2013 14:44:53 +0000 (16:44 +0200)
Checking against tmp-page indexes is not very useful, and results in one
(or rarely two) page requests.  Which is not much of an improvement...

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c

index cc3a6c4437e454ac9b35aa46ad13a12ef97a97c1..bf765cf7b1123b7008b302ef4d50a45d68e30fa7 100644 (file)
@@ -1633,7 +1633,7 @@ static int fuse_writepages_fill(struct page *page,
                BUG_ON(!req->num_pages);
                if (req->num_pages == FUSE_MAX_PAGES_PER_REQ ||
                    (req->num_pages + 1) * PAGE_CACHE_SIZE > fc->max_write ||
-                   req->pages[req->num_pages - 1]->index + 1 != page->index) {
+                   data->orig_pages[req->num_pages - 1]->index + 1 != page->index) {
 
                        fuse_writepages_send(data);
                        data->req = NULL;