aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
authorDavid Chinner <dgc@sgi.com>2006-11-11 02:04:54 -0500
committerTim Shimmin <tes@sgi.com>2006-11-11 02:04:54 -0500
commit7a18c386078eaf17ae54595f66c0d64d9c1cb29c (patch)
treed3194ced5802969f78cbd21c9d99dc01c622bb51 /fs/xfs/xfs_vnodeops.c
parent2e2e7bb1fd857b9fc83b0cd77b6b647ebb423301 (diff)
[XFS] Clean up i_flags and i_flags_lock handling.
SGI-PV: 956832 SGI-Modid: xfs-linux-melb:xfs-kern:27358a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Nathan Scott <nscott@aconex.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index 2c79c3670589..4c5d73cbb901 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -3844,9 +3844,7 @@ xfs_reclaim(
3844 XFS_MOUNT_ILOCK(mp); 3844 XFS_MOUNT_ILOCK(mp);
3845 vn_bhv_remove(VN_BHV_HEAD(vp), XFS_ITOBHV(ip)); 3845 vn_bhv_remove(VN_BHV_HEAD(vp), XFS_ITOBHV(ip));
3846 list_add_tail(&ip->i_reclaim, &mp->m_del_inodes); 3846 list_add_tail(&ip->i_reclaim, &mp->m_del_inodes);
3847 spin_lock(&ip->i_flags_lock); 3847 xfs_iflags_set(ip, XFS_IRECLAIMABLE);
3848 ip->i_flags |= XFS_IRECLAIMABLE;
3849 spin_unlock(&ip->i_flags_lock);
3850 XFS_MOUNT_IUNLOCK(mp); 3848 XFS_MOUNT_IUNLOCK(mp);
3851 } 3849 }
3852 return 0; 3850 return 0;
@@ -3872,8 +3870,8 @@ xfs_finish_reclaim(
3872 */ 3870 */
3873 write_lock(&ih->ih_lock); 3871 write_lock(&ih->ih_lock);
3874 spin_lock(&ip->i_flags_lock); 3872 spin_lock(&ip->i_flags_lock);
3875 if ((ip->i_flags & XFS_IRECLAIM) || 3873 if (__xfs_iflags_test(ip, XFS_IRECLAIM) ||
3876 (!(ip->i_flags & XFS_IRECLAIMABLE) && vp == NULL)) { 3874 (!__xfs_iflags_test(ip, XFS_IRECLAIMABLE) && vp == NULL)) {
3877 spin_unlock(&ip->i_flags_lock); 3875 spin_unlock(&ip->i_flags_lock);
3878 write_unlock(&ih->ih_lock); 3876 write_unlock(&ih->ih_lock);
3879 if (locked) { 3877 if (locked) {
@@ -3882,7 +3880,7 @@ xfs_finish_reclaim(
3882 } 3880 }
3883 return 1; 3881 return 1;
3884 } 3882 }
3885 ip->i_flags |= XFS_IRECLAIM; 3883 __xfs_iflags_set(ip, XFS_IRECLAIM);
3886 spin_unlock(&ip->i_flags_lock); 3884 spin_unlock(&ip->i_flags_lock);
3887 write_unlock(&ih->ih_lock); 3885 write_unlock(&ih->ih_lock);
3888 3886