ocfs2: rewrite error handling of ocfs2_fill_super
[ Upstream commit f1e75d12 ] Current ocfs2_fill_super() uses one goto label "read_super_error" to handle all error cases. And with previous serial patches, the error handling should fork more branches to handle different error cases. This patch rewrite the error handling of ocfs2_fill_super. Link: https://lkml.kernel.org/r/20220424130952.2436-6-heming.zhao@suse.com Signed-off-by:Heming Zhao <heming.zhao@suse.com> Reviewed-by:
Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Jun Piao <piaojun@huawei.com> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Mark Fasheh <mark@fasheh.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Stable-dep-of: ce2fcf15 ("ocfs2: fix memory leak in ocfs2_mount_volume()") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment