Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250071
b: refs/heads/master
c: ee58abd
h: refs/heads/master
i:
  250069: 3b7df2c
  250067: 79c8c5c
  250063: 31c6307
v: v3
  • Loading branch information
Dave Chinner authored and Alex Elder committed May 19, 2011
1 parent c7a1935 commit dcabf8b
Show file tree
Hide file tree
Showing 2 changed files with 11 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: e57375153d7376f2a923d98c388c1e20227b5731
refs/heads/master: ee58abdfcc8201f500107c7ba03f738af8b49b85
10 changes: 10 additions & 0 deletions trunk/fs/xfs/linux-2.6/xfs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,16 @@ xfs_sync_inode_attr(

error = xfs_iflush(ip, flags);

/*
* We don't want to try again on non-blocking flushes that can't run
* again immediately. If an inode really must be written, then that's
* what the SYNC_WAIT flag is for.
*/
if (error == EAGAIN) {
ASSERT(!(flags & SYNC_WAIT));
error = 0;
}

out_unlock:
xfs_iunlock(ip, XFS_ILOCK_SHARED);
return error;
Expand Down

0 comments on commit dcabf8b

Please sign in to comment.