Commit f541d270 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Tim Shimmin

[XFS] move freeing the mount structure from xfs_mount_free into the callers

In the next patch we need to look at the mount structure until just before
it's freed, so we need to be able to free it as the very last thing in
xfs_unmount.

SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29501a
Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarDavid Chinner <dgc@sgi.com>
Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
parent 0a74cd19
......@@ -312,6 +312,7 @@ bhv_remove_all_vfsops(
mp = XFS_VFSTOM(vfsp);
VFS_REMOVEBHV(vfsp, &mp->m_bhv);
xfs_mount_free(mp, 0);
kmem_free(mp, sizeof(xfs_mount_t));
}
void
......
......@@ -194,7 +194,6 @@ xfs_mount_free(
}
xfs_icsb_destroy_counters(mp);
kmem_free(mp, sizeof(xfs_mount_t));
}
/*
......
......@@ -640,6 +640,7 @@ out:
* and free the super block buffer & mount structures.
*/
xfs_unmountfs(mp, credp);
kmem_free(mp, sizeof(xfs_mount_t));
}
return XFS_ERROR(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment