Commit 811ed92e authored by Trond Myklebust's avatar Trond Myklebust

NFS: writepage of a single page should not be synchronous

It is almost always better to wait for more so that we can issue a
bulk commit.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 6b56a898
...@@ -625,7 +625,7 @@ static int nfs_writepage_locked(struct page *page, ...@@ -625,7 +625,7 @@ static int nfs_writepage_locked(struct page *page,
int err; int err;
nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE); 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); false, &nfs_async_write_completion_ops);
err = nfs_do_writepage(page, wbc, &pgio, launder); err = nfs_do_writepage(page, wbc, &pgio, launder);
nfs_pageio_complete(&pgio); nfs_pageio_complete(&pgio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment