diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index f89a73eb0167..1d15a320b9a6 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -2835,18 +2835,8 @@ xfs_reclaim( | |||
2835 | xfs_iflock(ip); | 2835 | xfs_iflock(ip); |
2836 | xfs_iflags_set(ip, XFS_IRECLAIMABLE); | 2836 | xfs_iflags_set(ip, XFS_IRECLAIMABLE); |
2837 | return xfs_reclaim_inode(ip, 1, XFS_IFLUSH_DELWRI_ELSE_SYNC); | 2837 | return xfs_reclaim_inode(ip, 1, XFS_IFLUSH_DELWRI_ELSE_SYNC); |
2838 | } else { | ||
2839 | xfs_mount_t *mp = ip->i_mount; | ||
2840 | |||
2841 | /* Protect sync and unpin from us */ | ||
2842 | XFS_MOUNT_ILOCK(mp); | ||
2843 | spin_lock(&ip->i_flags_lock); | ||
2844 | __xfs_iflags_set(ip, XFS_IRECLAIMABLE); | ||
2845 | spin_unlock(&ip->i_flags_lock); | ||
2846 | list_add_tail(&ip->i_reclaim, &mp->m_del_inodes); | ||
2847 | XFS_MOUNT_IUNLOCK(mp); | ||
2848 | xfs_inode_set_reclaim_tag(ip); | ||
2849 | } | 2838 | } |
2839 | xfs_inode_set_reclaim_tag(ip); | ||
2850 | return 0; | 2840 | return 0; |
2851 | } | 2841 | } |
2852 | 2842 | ||