diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
| -rw-r--r-- | fs/xfs/xfs_vnodeops.c | 10 |
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 | ||
