提交 af15b895 编写于 作者: C Christoph Hellwig 提交者: Niv Sardi

[XFS] 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.

SGI-PV: 981951
SGI-Modid: xfs-linux-melb:xfs-kern:31192a
Signed-off-by: NChristoph Hellwig <hch@infradead.org>
Signed-off-by: NDavid Chinner <dgc@sgi.com>
Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
上级 f8f15e42
...@@ -1268,7 +1268,6 @@ xfs_mountfs( ...@@ -1268,7 +1268,6 @@ xfs_mountfs(
error1: error1:
if (uuid_mounted) if (uuid_mounted)
uuid_table_remove(&mp->m_sb.sb_uuid); uuid_table_remove(&mp->m_sb.sb_uuid);
xfs_freesb(mp);
return error; return error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册