aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 704e67d392e5..e40e949598fd 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -582,6 +582,8 @@ nfs_scan_commit(struct inode *inode, struct list_head *dst, pgoff_t idx_start, u
582 ret = nfs_scan_list(nfsi, dst, idx_start, npages, NFS_PAGE_TAG_COMMIT); 582 ret = nfs_scan_list(nfsi, dst, idx_start, npages, NFS_PAGE_TAG_COMMIT);
583 if (ret > 0) 583 if (ret > 0)
584 nfsi->ncommit -= ret; 584 nfsi->ncommit -= ret;
585 if (nfs_need_commit(NFS_I(inode)))
586 __mark_inode_dirty(inode, I_DIRTY_DATASYNC);
585 return ret; 587 return ret;
586} 588}
587#else 589#else