Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267206
b: refs/heads/master
c: 3236c3e
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Trond Myklebust committed Oct 18, 2011
1 parent d3c2dc9 commit bd04e53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59b7c05fffba030e5d9e72324691e2f99aa69b79
refs/heads/master: 3236c3e1adc0c7ec83eaff1de2d06746b7c5bb28
4 changes: 4 additions & 0 deletions trunk/fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,10 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr
int flags = FLUSH_SYNC;
int ret = 0;

/* no commits means nothing needs to be done */
if (!nfsi->ncommit)
return ret;

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.
Expand Down

0 comments on commit bd04e53

Please sign in to comment.