aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 71296cc97f98..46aa4389ce13 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1554,6 +1554,10 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr
1554 int flags = FLUSH_SYNC; 1554 int flags = FLUSH_SYNC;
1555 int ret = 0; 1555 int ret = 0;
1556 1556
1557 /* no commits means nothing needs to be done */
1558 if (!nfsi->ncommit)
1559 return ret;
1560
1557 if (wbc->sync_mode == WB_SYNC_NONE) { 1561 if (wbc->sync_mode == WB_SYNC_NONE) {
1558 /* Don't commit yet if this is a non-blocking flush and there 1562 /* Don't commit yet if this is a non-blocking flush and there
1559 * are a lot of outstanding writes for this mapping. 1563 * are a lot of outstanding writes for this mapping.