aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-04-29 04:01:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 11:06:18 -0400
commit36a5aeb8787fbf92510ed20d806e229c55726f93 (patch)
tree7e6efd56b357a3f66a72b3e0d7540116214db338 /fs/ext4
parent9c37066d888bf6e1b96ad12304971b3ddeabbad0 (diff)
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index ef97f19c2f9d..1efcb934c2d6 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2867,7 +2867,6 @@ static void ext4_mb_free_committed_blocks(struct super_block *sb)
2867 mb_debug("freed %u blocks in %u structures\n", count, count2); 2867 mb_debug("freed %u blocks in %u structures\n", count, count2);
2868} 2868}
2869 2869
2870#define EXT4_ROOT "ext4"
2871#define EXT4_MB_STATS_NAME "stats" 2870#define EXT4_MB_STATS_NAME "stats"
2872#define EXT4_MB_MAX_TO_SCAN_NAME "max_to_scan" 2871#define EXT4_MB_MAX_TO_SCAN_NAME "max_to_scan"
2873#define EXT4_MB_MIN_TO_SCAN_NAME "min_to_scan" 2872#define EXT4_MB_MIN_TO_SCAN_NAME "min_to_scan"
@@ -3007,9 +3006,9 @@ int __init init_ext4_mballoc(void)
3007 return -ENOMEM; 3006 return -ENOMEM;
3008 } 3007 }
3009#ifdef CONFIG_PROC_FS 3008#ifdef CONFIG_PROC_FS
3010 proc_root_ext4 = proc_mkdir(EXT4_ROOT, proc_root_fs); 3009 proc_root_ext4 = proc_mkdir("fs/ext4", NULL);
3011 if (proc_root_ext4 == NULL) 3010 if (proc_root_ext4 == NULL)
3012 printk(KERN_ERR "EXT4-fs: Unable to create %s\n", EXT4_ROOT); 3011 printk(KERN_ERR "EXT4-fs: Unable to create fs/ext4\n");
3013#endif 3012#endif
3014 return 0; 3013 return 0;
3015} 3014}
@@ -3020,7 +3019,7 @@ void exit_ext4_mballoc(void)
3020 kmem_cache_destroy(ext4_pspace_cachep); 3019 kmem_cache_destroy(ext4_pspace_cachep);
3021 kmem_cache_destroy(ext4_ac_cachep); 3020 kmem_cache_destroy(ext4_ac_cachep);
3022#ifdef CONFIG_PROC_FS 3021#ifdef CONFIG_PROC_FS
3023 remove_proc_entry(EXT4_ROOT, proc_root_fs); 3022 remove_proc_entry("fs/ext4", NULL);
3024#endif 3023#endif
3025} 3024}
3026 3025