projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
420e364
)
NFS: Run COMMIT as an asynchronous RPC call when wbc->for_background is set
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sat, 20 Feb 2010 01:02:24 +0000
(17:02 -0800)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 5 Mar 2010 20:44:54 +0000
(15:44 -0500)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
fs/nfs/write.c
patch
|
blob
|
history
diff --git
a/fs/nfs/write.c
b/fs/nfs/write.c
index fc05e35da6a9af18969907df80256c245fdafca7..704e67d392e5a8bd01c13e0c8b8010dea10691f5 100644
(file)
--- 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
nfsi->ncommit <= (nfsi->npages >> 1))
goto out_mark_dirty;
- if (wbc->nonblocking)
+ if (wbc->nonblocking
|| wbc->for_background
)
flags = 0;
ret = nfs_commit_inode(inode, flags);
if (ret >= 0) {