Skip to content

Commit

Permalink
fuse: writepages: fix aggregation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Szeredi committed Oct 1, 2013
1 parent 2d033ea commit 1e112a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e112a4

Please sign in to comment.