summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-06 02:42:17 +0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 15:20:06 +0400
commit7b3c3a50a3e0ea46815150d420fa276ac254572b (patch)
treea49118d99ae5bac99b660d8a44c20df2b15a7037 /fs
parenta0ec95a8e69792e4ad642daac037c9b01ea3e2cd (diff)
downloadlinux-7b3c3a50a3e0ea46815150d420fa276ac254572b.tar.gz
linux-7b3c3a50a3e0ea46815150d420fa276ac254572b.tar.xz
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')
-rw-r--r--fs/proc/proc_misc.c17
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 = {
};
#endif
-#ifdef CONFIG_SLABINFO
-static int slabinfo_open(struct inode *inode, struct file *file)
-{
- return seq_open(file, &slabinfo_op);
-}
-static const struct file_operations proc_slabinfo_operations = {
- .open = slabinfo_open,
- .read = seq_read,
- .write = slabinfo_write,
- .llseek = seq_lseek,
- .release = seq_release,
-};
-#endif
-
#ifdef CONFIG_MMU
static int vmalloc_open(struct inode *inode, struct file *file)
{
@@ -309,9 +295,6 @@ void __init proc_misc_init(void)
proc_symlink("mounts", NULL, "self/mounts");
/* And now for trickier ones */
-#ifdef CONFIG_SLABINFO
- proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations);
-#endif
#ifdef CONFIG_MMU
proc_create("vmallocinfo", S_IRUSR, NULL, &proc_vmalloc_operations);
#endif