aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index fc05e35da6a9..704e67d392e5 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1426,7 +1426,7 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr
1426 nfsi->ncommit <= (nfsi->npages >> 1)) 1426 nfsi->ncommit <= (nfsi->npages >> 1))
1427 goto out_mark_dirty; 1427 goto out_mark_dirty;
1428 1428
1429 if (wbc->nonblocking) 1429 if (wbc->nonblocking || wbc->for_background)
1430 flags = 0; 1430 flags = 0;
1431 ret = nfs_commit_inode(inode, flags); 1431 ret = nfs_commit_inode(inode, flags);
1432 if (ret >= 0) { 1432 if (ret >= 0) {