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
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Date: Wed Aug 6 15:10:49 AEST 2008
Workarea: redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-mm
Inspected by:
hch
lachlan
Author: lachlan
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:31830a
fs/xfs/xfs_mount.c - 1.440 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_mount.c.diff?r1=text&tr1=1.440&r2=text&tr2=1.439&f=h
fs/xfs/linux-2.6/xfs_super.c - 1.444 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_super.c.diff?r1=text&tr1=1.444&r2=text&tr2=1.443&f=h
- move root inode IRELE into xfs_unmountfs
|