diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-05 18:42:17 -0400 |
|---|---|---|
| committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-23 07:20:06 -0400 |
| commit | 7b3c3a50a3e0ea46815150d420fa276ac254572b (patch) | |
| tree | a49118d99ae5bac99b660d8a44c20df2b15a7037 /fs/proc | |
| parent | a0ec95a8e69792e4ad642daac037c9b01ea3e2cd (diff) | |
proc: move /proc/slabinfo boilerplate to mm/slub.c, mm/slab.c
Lose dummy ->write hook in case of SLUB, it's possible now.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'fs/proc')
| -rw-r--r-- | fs/proc/proc_misc.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 5bca02842d07..1d6d5c5cc2a8 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
| @@ -132,20 +132,6 @@ static const struct file_operations proc_modules_operations = { | |||
| 132 | }; | 132 | }; |
| 133 | #endif | 133 | #endif |
| 134 | 134 | ||
| 135 | #ifdef CONFIG_SLABINFO | ||
| 136 | static int slabinfo_open(struct inode *inode, struct file *file) | ||
| 137 | { | ||
| 138 | return seq_open(file, &slabinfo_op); | ||
| 139 | } | ||
| 140 | static const struct file_operations proc_slabinfo_operations = { | ||
| 141 | .open = slabinfo_open, | ||
| 142 | .read = seq_read, | ||
| 143 | .write = slabinfo_write, | ||
| 144 | .llseek = seq_lseek, | ||
| 145 | .release = seq_release, | ||
| 146 | }; | ||
| 147 | #endif | ||
| 148 | |||
| 149 | #ifdef CONFIG_MMU | 135 | #ifdef CONFIG_MMU |
| 150 | static int vmalloc_open(struct inode *inode, struct file *file) | 136 | static int vmalloc_open(struct inode *inode, struct file *file) |
| 151 | { | 137 | { |
| @@ -309,9 +295,6 @@ void __init proc_misc_init(void) | |||
| 309 | proc_symlink("mounts", NULL, "self/mounts"); | 295 | proc_symlink("mounts", NULL, "self/mounts"); |
| 310 | 296 | ||
| 311 | /* And now for trickier ones */ | 297 | /* And now for trickier ones */ |
| 312 | #ifdef CONFIG_SLABINFO | ||
| 313 | proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations); | ||
| 314 | #endif | ||
| 315 | #ifdef CONFIG_MMU | 298 | #ifdef CONFIG_MMU |
| 316 | proc_create("vmallocinfo", S_IRUSR, NULL, &proc_vmalloc_operations); | 299 | proc_create("vmallocinfo", S_IRUSR, NULL, &proc_vmalloc_operations); |
| 317 | #endif | 300 | #endif |
