diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/proc_misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 5b6b0b6038a7..63bf6c00fa0c 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -323,6 +323,7 @@ static struct file_operations proc_modules_operations = { | |||
323 | }; | 323 | }; |
324 | #endif | 324 | #endif |
325 | 325 | ||
326 | #ifdef CONFIG_SLAB | ||
326 | extern struct seq_operations slabinfo_op; | 327 | extern struct seq_operations slabinfo_op; |
327 | extern ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *); | 328 | extern ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *); |
328 | static int slabinfo_open(struct inode *inode, struct file *file) | 329 | static int slabinfo_open(struct inode *inode, struct file *file) |
@@ -336,6 +337,7 @@ static struct file_operations proc_slabinfo_operations = { | |||
336 | .llseek = seq_lseek, | 337 | .llseek = seq_lseek, |
337 | .release = seq_release, | 338 | .release = seq_release, |
338 | }; | 339 | }; |
340 | #endif | ||
339 | 341 | ||
340 | static int show_stat(struct seq_file *p, void *v) | 342 | static int show_stat(struct seq_file *p, void *v) |
341 | { | 343 | { |
@@ -600,7 +602,9 @@ void __init proc_misc_init(void) | |||
600 | create_seq_entry("partitions", 0, &proc_partitions_operations); | 602 | create_seq_entry("partitions", 0, &proc_partitions_operations); |
601 | create_seq_entry("stat", 0, &proc_stat_operations); | 603 | create_seq_entry("stat", 0, &proc_stat_operations); |
602 | create_seq_entry("interrupts", 0, &proc_interrupts_operations); | 604 | create_seq_entry("interrupts", 0, &proc_interrupts_operations); |
605 | #ifdef CONFIG_SLAB | ||
603 | create_seq_entry("slabinfo",S_IWUSR|S_IRUGO,&proc_slabinfo_operations); | 606 | create_seq_entry("slabinfo",S_IWUSR|S_IRUGO,&proc_slabinfo_operations); |
607 | #endif | ||
604 | create_seq_entry("buddyinfo",S_IRUGO, &fragmentation_file_operations); | 608 | create_seq_entry("buddyinfo",S_IRUGO, &fragmentation_file_operations); |
605 | create_seq_entry("vmstat",S_IRUGO, &proc_vmstat_file_operations); | 609 | create_seq_entry("vmstat",S_IRUGO, &proc_vmstat_file_operations); |
606 | create_seq_entry("zoneinfo",S_IRUGO, &proc_zoneinfo_file_operations); | 610 | create_seq_entry("zoneinfo",S_IRUGO, &proc_zoneinfo_file_operations); |