diff options
Diffstat (limited to 'fs/gfs2/main.c')
-rw-r--r-- | fs/gfs2/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index 754426b1e52c..ce1794428ee4 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -143,6 +143,12 @@ static int __init init_gfs2_fs(void) | |||
143 | if (!gfs2_quotad_cachep) | 143 | if (!gfs2_quotad_cachep) |
144 | goto fail; | 144 | goto fail; |
145 | 145 | ||
146 | gfs2_rsrv_cachep = kmem_cache_create("gfs2_mblk", | ||
147 | sizeof(struct gfs2_blkreserv), | ||
148 | 0, 0, NULL); | ||
149 | if (!gfs2_rsrv_cachep) | ||
150 | goto fail; | ||
151 | |||
146 | register_shrinker(&qd_shrinker); | 152 | register_shrinker(&qd_shrinker); |
147 | 153 | ||
148 | error = register_filesystem(&gfs2_fs_type); | 154 | error = register_filesystem(&gfs2_fs_type); |
@@ -186,6 +192,9 @@ fail: | |||
186 | unregister_shrinker(&qd_shrinker); | 192 | unregister_shrinker(&qd_shrinker); |
187 | gfs2_glock_exit(); | 193 | gfs2_glock_exit(); |
188 | 194 | ||
195 | if (gfs2_rsrv_cachep) | ||
196 | kmem_cache_destroy(gfs2_rsrv_cachep); | ||
197 | |||
189 | if (gfs2_quotad_cachep) | 198 | if (gfs2_quotad_cachep) |
190 | kmem_cache_destroy(gfs2_quotad_cachep); | 199 | kmem_cache_destroy(gfs2_quotad_cachep); |
191 | 200 | ||
@@ -226,6 +235,7 @@ static void __exit exit_gfs2_fs(void) | |||
226 | rcu_barrier(); | 235 | rcu_barrier(); |
227 | 236 | ||
228 | mempool_destroy(gfs2_bh_pool); | 237 | mempool_destroy(gfs2_bh_pool); |
238 | kmem_cache_destroy(gfs2_rsrv_cachep); | ||
229 | kmem_cache_destroy(gfs2_quotad_cachep); | 239 | kmem_cache_destroy(gfs2_quotad_cachep); |
230 | kmem_cache_destroy(gfs2_rgrpd_cachep); | 240 | kmem_cache_destroy(gfs2_rgrpd_cachep); |
231 | kmem_cache_destroy(gfs2_bufdata_cachep); | 241 | kmem_cache_destroy(gfs2_bufdata_cachep); |