diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-04-29 04:01:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:18 -0400 |
commit | 36a5aeb8787fbf92510ed20d806e229c55726f93 (patch) | |
tree | 7e6efd56b357a3f66a72b3e0d7540116214db338 /fs | |
parent | 9c37066d888bf6e1b96ad12304971b3ddeabbad0 (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')
-rw-r--r-- | fs/cifs/cifs_debug.c | 4 | ||||
-rw-r--r-- | fs/ext4/mballoc.c | 7 | ||||
-rw-r--r-- | fs/jfs/jfs_debug.c | 4 | ||||
-rw-r--r-- | fs/nfs/client.c | 6 | ||||
-rw-r--r-- | fs/proc/root.c | 5 |
5 files changed, 12 insertions, 14 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 0228ed06069e..cc950f69e51e 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c | |||
@@ -468,7 +468,7 @@ cifs_proc_init(void) | |||
468 | { | 468 | { |
469 | struct proc_dir_entry *pde; | 469 | struct proc_dir_entry *pde; |
470 | 470 | ||
471 | proc_fs_cifs = proc_mkdir("cifs", proc_root_fs); | 471 | proc_fs_cifs = proc_mkdir("fs/cifs", NULL); |
472 | if (proc_fs_cifs == NULL) | 472 | if (proc_fs_cifs == NULL) |
473 | return; | 473 | return; |
474 | 474 | ||
@@ -559,7 +559,7 @@ cifs_proc_clean(void) | |||
559 | remove_proc_entry("LinuxExtensionsEnabled", proc_fs_cifs); | 559 | remove_proc_entry("LinuxExtensionsEnabled", proc_fs_cifs); |
560 | remove_proc_entry("Experimental", proc_fs_cifs); | 560 | remove_proc_entry("Experimental", proc_fs_cifs); |
561 | remove_proc_entry("LookupCacheEnabled", proc_fs_cifs); | 561 | remove_proc_entry("LookupCacheEnabled", proc_fs_cifs); |
562 | remove_proc_entry("cifs", proc_root_fs); | 562 | remove_proc_entry("fs/cifs", NULL); |
563 | } | 563 | } |
564 | 564 | ||
565 | static int | 565 | static int |
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 | ||
diff --git a/fs/jfs/jfs_debug.c b/fs/jfs/jfs_debug.c index 887f5759e536..bf6ab19b86ee 100644 --- a/fs/jfs/jfs_debug.c +++ b/fs/jfs/jfs_debug.c | |||
@@ -89,7 +89,7 @@ void jfs_proc_init(void) | |||
89 | { | 89 | { |
90 | int i; | 90 | int i; |
91 | 91 | ||
92 | if (!(base = proc_mkdir("jfs", proc_root_fs))) | 92 | if (!(base = proc_mkdir("fs/jfs", NULL))) |
93 | return; | 93 | return; |
94 | base->owner = THIS_MODULE; | 94 | base->owner = THIS_MODULE; |
95 | 95 | ||
@@ -109,7 +109,7 @@ void jfs_proc_clean(void) | |||
109 | if (base) { | 109 | if (base) { |
110 | for (i = 0; i < NPROCENT; i++) | 110 | for (i = 0; i < NPROCENT; i++) |
111 | remove_proc_entry(Entries[i].name, base); | 111 | remove_proc_entry(Entries[i].name, base); |
112 | remove_proc_entry("jfs", proc_root_fs); | 112 | remove_proc_entry("fs/jfs", NULL); |
113 | } | 113 | } |
114 | } | 114 | } |
115 | 115 | ||
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index f2f3b284e6dd..0e066dcd4700 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -1500,7 +1500,7 @@ int __init nfs_fs_proc_init(void) | |||
1500 | { | 1500 | { |
1501 | struct proc_dir_entry *p; | 1501 | struct proc_dir_entry *p; |
1502 | 1502 | ||
1503 | proc_fs_nfs = proc_mkdir("nfsfs", proc_root_fs); | 1503 | proc_fs_nfs = proc_mkdir("fs/nfsfs", NULL); |
1504 | if (!proc_fs_nfs) | 1504 | if (!proc_fs_nfs) |
1505 | goto error_0; | 1505 | goto error_0; |
1506 | 1506 | ||
@@ -1526,7 +1526,7 @@ int __init nfs_fs_proc_init(void) | |||
1526 | error_2: | 1526 | error_2: |
1527 | remove_proc_entry("servers", proc_fs_nfs); | 1527 | remove_proc_entry("servers", proc_fs_nfs); |
1528 | error_1: | 1528 | error_1: |
1529 | remove_proc_entry("nfsfs", proc_root_fs); | 1529 | remove_proc_entry("fs/nfsfs", NULL); |
1530 | error_0: | 1530 | error_0: |
1531 | return -ENOMEM; | 1531 | return -ENOMEM; |
1532 | } | 1532 | } |
@@ -1538,7 +1538,7 @@ void nfs_fs_proc_exit(void) | |||
1538 | { | 1538 | { |
1539 | remove_proc_entry("volumes", proc_fs_nfs); | 1539 | remove_proc_entry("volumes", proc_fs_nfs); |
1540 | remove_proc_entry("servers", proc_fs_nfs); | 1540 | remove_proc_entry("servers", proc_fs_nfs); |
1541 | remove_proc_entry("nfsfs", proc_root_fs); | 1541 | remove_proc_entry("fs/nfsfs", NULL); |
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | #endif /* CONFIG_PROC_FS */ | 1544 | #endif /* CONFIG_PROC_FS */ |
diff --git a/fs/proc/root.c b/fs/proc/root.c index cc46fcba8029..596abb690afa 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include "internal.h" | 23 | #include "internal.h" |
24 | 24 | ||
25 | struct proc_dir_entry *proc_root_fs, *proc_root_driver; | 25 | struct proc_dir_entry *proc_root_driver; |
26 | 26 | ||
27 | static int proc_test_super(struct super_block *sb, void *data) | 27 | static int proc_test_super(struct super_block *sb, void *data) |
28 | { | 28 | { |
@@ -126,7 +126,7 @@ void __init proc_root_init(void) | |||
126 | #ifdef CONFIG_SYSVIPC | 126 | #ifdef CONFIG_SYSVIPC |
127 | proc_mkdir("sysvipc", NULL); | 127 | proc_mkdir("sysvipc", NULL); |
128 | #endif | 128 | #endif |
129 | proc_root_fs = proc_mkdir("fs", NULL); | 129 | proc_mkdir("fs", NULL); |
130 | proc_root_driver = proc_mkdir("driver", NULL); | 130 | proc_root_driver = proc_mkdir("driver", NULL); |
131 | proc_mkdir("fs/nfsd", NULL); /* somewhere for the nfsd filesystem to be mounted */ | 131 | proc_mkdir("fs/nfsd", NULL); /* somewhere for the nfsd filesystem to be mounted */ |
132 | #if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE) | 132 | #if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE) |
@@ -235,5 +235,4 @@ EXPORT_SYMBOL(create_proc_entry); | |||
235 | EXPORT_SYMBOL(proc_create); | 235 | EXPORT_SYMBOL(proc_create); |
236 | EXPORT_SYMBOL(remove_proc_entry); | 236 | EXPORT_SYMBOL(remove_proc_entry); |
237 | EXPORT_SYMBOL(proc_root); | 237 | EXPORT_SYMBOL(proc_root); |
238 | EXPORT_SYMBOL(proc_root_fs); | ||
239 | EXPORT_SYMBOL(proc_root_driver); | 238 | EXPORT_SYMBOL(proc_root_driver); |