Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254071
b: refs/heads/master
c: df4368a
h: refs/heads/master
i:
  254069: fb0ebb0
  254067: 7eb6dd1
  254063: 9ad045c
v: v3
  • Loading branch information
Dave Chinner authored and Alex Elder committed Jun 24, 2011
1 parent 55d9c4d commit 3c45923
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 778e24bb6dd8682318bb496d4bfdc32b501a6420
refs/heads/master: df4368a146d2b350b8398babfe11e2088f741d67
7 changes: 5 additions & 2 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,11 @@ xfs_release(
* be exposed to that problem.
*/
truncated = xfs_iflags_test_and_clear(ip, XFS_ITRUNCATED);
if (truncated && VN_DIRTY(VFS_I(ip)) && ip->i_delayed_blks > 0)
xfs_flush_pages(ip, 0, -1, XBF_ASYNC, FI_NONE);
if (truncated) {
xfs_iflags_clear(ip, XFS_IDIRTY_RELEASE);
if (VN_DIRTY(VFS_I(ip)) && ip->i_delayed_blks > 0)
xfs_flush_pages(ip, 0, -1, XBF_ASYNC, FI_NONE);
}
}

if (ip->i_d.di_nlink == 0)
Expand Down

0 comments on commit 3c45923

Please sign in to comment.