diff options
Diffstat (limited to 'fs/gfs2/main.c')
-rw-r--r-- | fs/gfs2/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index c54177790318..c8d17b7ba60b 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -64,11 +64,17 @@ static int __init init_gfs2_fs(void) | |||
64 | if (error) | 64 | if (error) |
65 | goto fail; | 65 | goto fail; |
66 | 66 | ||
67 | error = register_filesystem(&gfs2meta_fs_type); | ||
68 | if (error) | ||
69 | goto fail_unregister; | ||
70 | |||
67 | printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__); | 71 | printk("GFS2 (built %s %s) installed\n", __DATE__, __TIME__); |
68 | 72 | ||
69 | return 0; | 73 | return 0; |
70 | 74 | ||
71 | fail: | 75 | fail_unregister: |
76 | unregister_filesystem(&gfs2_fs_type); | ||
77 | fail: | ||
72 | if (gfs2_bufdata_cachep) | 78 | if (gfs2_bufdata_cachep) |
73 | kmem_cache_destroy(gfs2_bufdata_cachep); | 79 | kmem_cache_destroy(gfs2_bufdata_cachep); |
74 | 80 | ||
@@ -90,6 +96,7 @@ static int __init init_gfs2_fs(void) | |||
90 | static void __exit exit_gfs2_fs(void) | 96 | static void __exit exit_gfs2_fs(void) |
91 | { | 97 | { |
92 | unregister_filesystem(&gfs2_fs_type); | 98 | unregister_filesystem(&gfs2_fs_type); |
99 | unregister_filesystem(&gfs2meta_fs_type); | ||
93 | 100 | ||
94 | kmem_cache_destroy(gfs2_bufdata_cachep); | 101 | kmem_cache_destroy(gfs2_bufdata_cachep); |
95 | kmem_cache_destroy(gfs2_inode_cachep); | 102 | kmem_cache_destroy(gfs2_inode_cachep); |