Skip to contentSkip to conversation

don't call xfs_freesb from xfs_mountfs failure case

PATCH In review Christoph Hellwig 1 participant 1 message May 1, 2008 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 3/10 don't call xfs_freesb from xfs_mountfs failure case

Freeing of the superblock is already handled in the caller, and that is more symmetric with the mount path, too.

fs/xfs/xfs_mount.c +0 -1
Index: linux-2.6-xfs/fs/xfs/xfs_mount.c
===================================================================
@@ -1272,7 +1272,6 @@ xfs_mountfs(
  error1:
 	if (uuid_mounted)
 		uuid_table_remove(&mp->m_sb.sb_uuid);
-	xfs_freesb(mp);
 	return error;
 }