diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 8974809be5f6..253ea50c4393 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -106,17 +106,6 @@ static const struct file_operations proc_vmstat_file_operations = { | |||
106 | }; | 106 | }; |
107 | 107 | ||
108 | #ifdef CONFIG_BLOCK | 108 | #ifdef CONFIG_BLOCK |
109 | static int partitions_open(struct inode *inode, struct file *file) | ||
110 | { | ||
111 | return seq_open(file, &partitions_op); | ||
112 | } | ||
113 | static const struct file_operations proc_partitions_operations = { | ||
114 | .open = partitions_open, | ||
115 | .read = seq_read, | ||
116 | .llseek = seq_lseek, | ||
117 | .release = seq_release, | ||
118 | }; | ||
119 | |||
120 | static int diskstats_open(struct inode *inode, struct file *file) | 109 | static int diskstats_open(struct inode *inode, struct file *file) |
121 | { | 110 | { |
122 | return seq_open(file, &diskstats_op); | 111 | return seq_open(file, &diskstats_op); |
@@ -519,9 +508,6 @@ void __init proc_misc_init(void) | |||
519 | proc_symlink("mounts", NULL, "self/mounts"); | 508 | proc_symlink("mounts", NULL, "self/mounts"); |
520 | 509 | ||
521 | /* And now for trickier ones */ | 510 | /* And now for trickier ones */ |
522 | #ifdef CONFIG_BLOCK | ||
523 | proc_create("partitions", 0, NULL, &proc_partitions_operations); | ||
524 | #endif | ||
525 | proc_create("stat", 0, NULL, &proc_stat_operations); | 511 | proc_create("stat", 0, NULL, &proc_stat_operations); |
526 | proc_create("interrupts", 0, NULL, &proc_interrupts_operations); | 512 | proc_create("interrupts", 0, NULL, &proc_interrupts_operations); |
527 | #ifdef CONFIG_SLABINFO | 513 | #ifdef CONFIG_SLABINFO |