diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-29 11:53:22 +1000 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-16 11:40:52 +1000 |
commit | f541d270dbce375b7bd8cef466bdaf0cff945b45 (patch) | |
tree | c0dbbf48f4b2dfd3c2740f251afd403deb5db2fa /fs/xfs/xfs_vfsops.c | |
parent | 0a74cd1964501fdb577176f14ed3d02b8e148127 (diff) | |
download | op-kernel-dev-f541d270dbce375b7bd8cef466bdaf0cff945b45.zip op-kernel-dev-f541d270dbce375b7bd8cef466bdaf0cff945b45.tar.gz |
[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: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r-- | fs/xfs/xfs_vfsops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c index 3fe64a3a..8c0e022 100644 --- a/fs/xfs/xfs_vfsops.c +++ b/fs/xfs/xfs_vfsops.c @@ -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); |