public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* ext4/super.c : Fix a goto label
@ 2023-08-28  9:27 Haibo Liu
  2023-08-28 16:18 ` Darrick J. Wong
  2023-08-29  7:52 ` [v2] " Haibo Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Haibo Liu @ 2023-08-28  9:27 UTC (permalink / raw)
  To: linux-ext4; +Cc: Haibo Liu

There are 9 goto labels in ext4_init_fs: out,out05,out1,out2,out3,out4,out5,out6,out7. So I feel that replacing out5 with out0 may be better. 

Signed-off-by: Haibo Liu <haiboliu6@gmail.com>
---
 fs/ext4/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 03373471131c..115bbbd95a7b 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -6696,7 +6696,7 @@ static int __init ext4_init_fs(void)
 
 	err = ext4_fc_init_dentry_cache();
 	if (err)
-		goto out05;
+		goto out0;
 
 	register_as_ext3();
 	register_as_ext2();
@@ -6708,7 +6708,7 @@ static int __init ext4_init_fs(void)
 out:
 	unregister_as_ext2();
 	unregister_as_ext3();
-out05:
+out0:
 	destroy_inodecache();
 out1:
 	ext4_exit_mballoc();
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-02 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28  9:27 ext4/super.c : Fix a goto label Haibo Liu
2023-08-28 16:18 ` Darrick J. Wong
2023-08-29  7:52 ` [v2] " Haibo Liu
2024-01-02 14:22   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox