* [PATCH] gfs2: Unregister debugfs on filesystem registration failure
@ 2026-06-22 10:05 Haoxiang Li
0 siblings, 0 replies; only message in thread
From: Haoxiang Li @ 2026-06-22 10:05 UTC (permalink / raw)
To: agruenba; +Cc: gfs2, linux-kernel, Haoxiang Li
init_gfs2_fs() registers debugfs before registering the GFS2
filesystems. If either filesystem registration fails, the
error path tears down the other resources but leaves debugfs
registered. Call gfs2_unregister_debugfs() from the filesystem
registration failure path.
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
---
fs/gfs2/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c
index 9d65719353fa..9fc4835f209d 100644
--- a/fs/gfs2/main.c
+++ b/fs/gfs2/main.c
@@ -187,6 +187,7 @@ static int __init init_gfs2_fs(void)
fail_fs2:
unregister_filesystem(&gfs2_fs_type);
fail_fs1:
+ gfs2_unregister_debugfs();
mempool_destroy(gfs2_page_pool);
fail_mempool:
destroy_workqueue(gfs2_freeze_wq);
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-22 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 10:05 [PATCH] gfs2: Unregister debugfs on filesystem registration failure Haoxiang Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox