diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-28 21:44:50 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 21:38:36 -0400 |
commit | 09262b4339de5417a10803fbfac277eebb38ca5a (patch) | |
tree | b375b3c7c221a9b696e44e7faf94ee0df2323078 /fs/xfs/xfs_vnodeops.c | |
parent | b3aea4edc2903fdee34920630b8b2433f6452f02 (diff) |
[XFS] Create xfs_iflags_test_and_clear helper function
SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29496a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index f2c037a9564e..8ed7af3c5d63 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -1541,12 +1541,7 @@ xfs_release( | |||
1541 | * significantly reducing the time window where we'd otherwise | 1541 | * significantly reducing the time window where we'd otherwise |
1542 | * be exposed to that problem. | 1542 | * be exposed to that problem. |
1543 | */ | 1543 | */ |
1544 | spin_lock(&ip->i_flags_lock); | 1544 | truncated = xfs_iflags_test_and_clear(ip, XFS_ITRUNCATED); |
1545 | truncated = __xfs_iflags_test(ip, XFS_ITRUNCATED); | ||
1546 | if (truncated) | ||
1547 | ip->i_flags &= ~XFS_ITRUNCATED; | ||
1548 | spin_unlock(&ip->i_flags_lock); | ||
1549 | |||
1550 | if (truncated && VN_DIRTY(vp) && ip->i_delayed_blks > 0) | 1545 | if (truncated && VN_DIRTY(vp) && ip->i_delayed_blks > 0) |
1551 | xfs_flush_pages(ip, 0, -1, XFS_B_ASYNC, FI_NONE); | 1546 | xfs_flush_pages(ip, 0, -1, XFS_B_ASYNC, FI_NONE); |
1552 | } | 1547 | } |