Skip to content

Commit

Permalink
[XFS] don't call xfs_freesb from xfs_mountfs failure case
Browse files Browse the repository at this point in the history
Freeing of the superblock is already handled in the caller, and that is
more symmetric with the mount path, too.

SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31192a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
  • Loading branch information
Christoph Hellwig authored and Niv Sardi committed Jul 28, 2008
1 parent f8f15e4 commit af15b89
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,6 @@ xfs_mountfs(
error1:
if (uuid_mounted)
uuid_table_remove(&mp->m_sb.sb_uuid);
xfs_freesb(mp);
return error;
}

Expand Down

0 comments on commit af15b89

Please sign in to comment.