/* We set the inode flag atomically with the radix tree tag. Once we get tag lookups on the radix tree, this inode flag can go away.  */
void xfs_inode_set_reclaim_tag(xfs_inode_t *ip)
/* We set the inode flag atomically with the radix tree tag. Once we get tag lookups on the radix tree, this inode flag can go away.  */
void xfs_inode_set_reclaim_tag(xfs_inode_t *ip)
{
	xfs_mount_t	*mp = ip->i_mount;
	xfs_perag_t	*pag = xfs_get_perag(mp, ip->i_ino);
	read_lock(&pag->pag_ici_lock);
	spin_lock(&ip->i_flags_lock);
	__xfs_inode_set_reclaim_tag(pag, ip);
	__xfs_iflags_set(ip, XFS_IRECLAIMABLE);
	spin_unlock(&ip->i_flags_lock);
	read_unlock(&pag->pag_ici_lock);
	xfs_put_perag(mp, pag);
}