[PATCH 6/6] xfs: mark reclaimed inodes invalid earlier

Christoph Hellwig hch at infradead.org
Thu Apr 7 18:46:36 CDT 2016


> +	spin_lock(&ip->i_flags_lock);
> +	ip->i_flags = XFS_IRECLAIM;
> +	ip->i_ino = 0;
> +	spin_unlock(&ip->i_flags_lock);

It's just a tiny sniplet, but still duplicated from xfs_inode_free().
Maybe add another helper for this?

Otherwise looks fine:

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the xfs mailing list