[XFS] Avoid using inodes that haven't been completely initialised
authorDave Chinner <david@fromorbit.com>
Mon, 10 Nov 2008 06:13:23 +0000 (17:13 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 10 Nov 2008 06:13:23 +0000 (17:13 +1100)
commit6307091fe69ae74747298bdcaf43119ad67bda3a
treec1feb80479b7ae4ebcf9a4336e50dfd18aebcb38
parentcb4f0d1d4229f609f43c68acec69c7618ed72397
[XFS] Avoid using inodes that haven't been completely initialised

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.

SGI-PV: 987246

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/quota/xfs_qm_syscalls.c