]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] move root inode IRELE into xfs_unmountfs
authorChristoph Hellwig <hch@infradead.org>
Wed, 13 Aug 2008 06:49:04 +0000 (16:49 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 06:49:04 +0000 (16:49 +1000)
commit77508ec8e6ed72c9ba8ca74248a7aabd664e3f57
treed43fbde9c21fa21b8d3b791a18ee0d98af2f6102
parent3a76c1ea07ee4e9da7c8e476e43be7e1b2bf24fb
[XFS] move root inode IRELE into xfs_unmountfs

The root inode is allocated in xfs_mountfs so it should be release in
xfs_unmountfs. For the unmount case that means we do it after the the
xfs_sync(mp, SYNC_WAIT | SYNC_CLOSE) in the forced shutdown case and the
dmapi unmount event. Note that both reference the rip variable which might
be freed by that time in case inode flushing has kicked in, so strictly
speaking this might count as a bug fix

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31830a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_mount.c