* [PATCH] NFS: update comments in nfs_commit_unstable_pages
@ 2010-08-20 13:31 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2010-08-20 13:31 UTC (permalink / raw)
To: Trond Myklebust
Cc: Wu Fengguang, linux-nfs, linux-fsdevel, linux-mm,
Christoph Hellwig
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/nfs/write.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 35bd7d0..d417790 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1433,12 +1433,14 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr
int flags = FLUSH_SYNC;
int ret = 0;
- /* Don't commit yet if this is a non-blocking flush and there are
- * lots of outstanding writes for this mapping.
- */
if (wbc->sync_mode == WB_SYNC_NONE) {
+ /* Don't commit yet if this is a non-blocking flush and there
+ * are a lot of outstanding writes for this mapping.
+ */
if (nfsi->ncommit <= (nfsi->npages >> 1))
goto out_mark_dirty;
+
+ /* don't wait for the COMMIT response */
flags = 0;
}
--
1.5.5.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-20 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 13:31 [PATCH] NFS: update comments in nfs_commit_unstable_pages Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).