proc: remove proc_root_fs
Use creation by full path instead: "fs/foo". Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9c37066d88
commit
36a5aeb878
@@ -2867,7 +2867,6 @@ static void ext4_mb_free_committed_blocks(struct super_block *sb)
|
||||
mb_debug("freed %u blocks in %u structures\n", count, count2);
|
||||
}
|
||||
|
||||
#define EXT4_ROOT "ext4"
|
||||
#define EXT4_MB_STATS_NAME "stats"
|
||||
#define EXT4_MB_MAX_TO_SCAN_NAME "max_to_scan"
|
||||
#define EXT4_MB_MIN_TO_SCAN_NAME "min_to_scan"
|
||||
@@ -3007,9 +3006,9 @@ int __init init_ext4_mballoc(void)
|
||||
return -ENOMEM;
|
||||
}
|
||||
#ifdef CONFIG_PROC_FS
|
||||
proc_root_ext4 = proc_mkdir(EXT4_ROOT, proc_root_fs);
|
||||
proc_root_ext4 = proc_mkdir("fs/ext4", NULL);
|
||||
if (proc_root_ext4 == NULL)
|
||||
printk(KERN_ERR "EXT4-fs: Unable to create %s\n", EXT4_ROOT);
|
||||
printk(KERN_ERR "EXT4-fs: Unable to create fs/ext4\n");
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
@@ -3020,7 +3019,7 @@ void exit_ext4_mballoc(void)
|
||||
kmem_cache_destroy(ext4_pspace_cachep);
|
||||
kmem_cache_destroy(ext4_ac_cachep);
|
||||
#ifdef CONFIG_PROC_FS
|
||||
remove_proc_entry(EXT4_ROOT, proc_root_fs);
|
||||
remove_proc_entry("fs/ext4", NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user