Re: [PATCH 5/5] XFS: Avoid using inodes that haven't been completely initialised

Christoph Hellwig
2008-10-31T20:21:40Z

On Fri, Oct 31, 2008 at 12:15:29PM +1100, Dave Chinner wrote:
> The radix tree walks in xfs_sync_inodes_ag and xfs_qm_dqrele_all_inodes()
> can find inodes that are still undergoing initialisation. Avoid
> them by checking for the the XFS_INEW() flag once we have a reference
> on the inode. This flag is cleared once the inode is properly initialised.

Yeah, that's what I meant with my initial comment that we can grab the
inodes anytime they are on the radix tree.

Looks good.