aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2009-03-16 03:19:29 -0400
committerChristoph Hellwig <hch@brick.lst.de>2009-03-16 03:19:29 -0400
commit21b699c89545ed94d9a1c6fcc8ac704784f68f40 (patch)
tree5a7f9de57f445859f0b30c5f6ee5816d544224b1 /fs/xfs/xfs_mount.c
parentda5309cd28ffda6ed8a4147bd14f1e4fbbd6503d (diff)
xfs: cleanup log unmount handling
Kill the current xfs_log_unmount wrapper and opencode the two function calls in the only caller. Rename the current xfs_log_unmount_dealloc to xfs_log_unmount as it undoes xfs_log_mount and the new name makes that more clear. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 664961e45e02..2549a235dad2 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -1194,7 +1194,7 @@ xfs_mountfs(
1194 out_rele_rip: 1194 out_rele_rip:
1195 IRELE(rip); 1195 IRELE(rip);
1196 out_log_dealloc: 1196 out_log_dealloc:
1197 xfs_log_unmount_dealloc(mp); 1197 xfs_log_unmount(mp);
1198 out_free_perag: 1198 out_free_perag:
1199 xfs_free_perag(mp); 1199 xfs_free_perag(mp);
1200 out_remove_uuid: 1200 out_remove_uuid:
@@ -1280,7 +1280,8 @@ xfs_unmountfs(
1280 "Freespace may not be correct on next mount."); 1280 "Freespace may not be correct on next mount.");
1281 xfs_unmountfs_writesb(mp); 1281 xfs_unmountfs_writesb(mp);
1282 xfs_unmountfs_wait(mp); /* wait for async bufs */ 1282 xfs_unmountfs_wait(mp); /* wait for async bufs */
1283 xfs_log_unmount(mp); /* Done! No more fs ops. */ 1283 xfs_log_unmount_write(mp);
1284 xfs_log_unmount(mp);
1284 1285
1285 if ((mp->m_flags & XFS_MOUNT_NOUUID) == 0) 1286 if ((mp->m_flags & XFS_MOUNT_NOUUID) == 0)
1286 uuid_table_remove(&mp->m_sb.sb_uuid); 1287 uuid_table_remove(&mp->m_sb.sb_uuid);