Skip to content

Commit

Permalink
NFS: writepage of a single page should not be synchronous
Browse files Browse the repository at this point in the history
It is almost always better to wait for more so that we can issue a
bulk commit.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Trond Myklebust committed Jun 22, 2016
1 parent 6b56a89 commit 811ed92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ static int nfs_writepage_locked(struct page *page,
int err;

nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE);
nfs_pageio_init_write(&pgio, inode, wb_priority(wbc),
nfs_pageio_init_write(&pgio, inode, 0,
false, &nfs_async_write_completion_ops);
err = nfs_do_writepage(page, wbc, &pgio, launder);
nfs_pageio_complete(&pgio);
Expand Down

0 comments on commit 811ed92

Please sign in to comment.