|
@@ -2517,6 +2517,9 @@ int ext4_mb_release(struct super_block *sb)
|
|
|
struct ext4_sb_info *sbi = EXT4_SB(sb);
|
|
|
struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits);
|
|
|
|
|
|
+ if (sbi->s_proc)
|
|
|
+ remove_proc_entry("mb_groups", sbi->s_proc);
|
|
|
+
|
|
|
if (sbi->s_group_info) {
|
|
|
for (i = 0; i < ngroups; i++) {
|
|
|
grinfo = ext4_get_group_info(sb, i);
|
|
@@ -2564,8 +2567,6 @@ int ext4_mb_release(struct super_block *sb)
|
|
|
}
|
|
|
|
|
|
free_percpu(sbi->s_locality_groups);
|
|
|
- if (sbi->s_proc)
|
|
|
- remove_proc_entry("mb_groups", sbi->s_proc);
|
|
|
|
|
|
return 0;
|
|
|
}
|