aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_misc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 900331a634ef..e7a301d5d432 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -69,17 +69,6 @@ static const struct file_operations proc_zoneinfo_file_operations = {
69 .release = seq_release, 69 .release = seq_release,
70}; 70};
71 71
72static int vmstat_open(struct inode *inode, struct file *file)
73{
74 return seq_open(file, &vmstat_op);
75}
76static const struct file_operations proc_vmstat_file_operations = {
77 .open = vmstat_open,
78 .read = seq_read,
79 .llseek = seq_lseek,
80 .release = seq_release,
81};
82
83#ifdef CONFIG_BLOCK 72#ifdef CONFIG_BLOCK
84static int diskstats_open(struct inode *inode, struct file *file) 73static int diskstats_open(struct inode *inode, struct file *file)
85{ 74{
@@ -245,7 +234,6 @@ void __init proc_misc_init(void)
245 proc_symlink("mounts", NULL, "self/mounts"); 234 proc_symlink("mounts", NULL, "self/mounts");
246 235
247 /* And now for trickier ones */ 236 /* And now for trickier ones */
248 proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);
249 proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); 237 proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
250#ifdef CONFIG_BLOCK 238#ifdef CONFIG_BLOCK
251 proc_create("diskstats", 0, NULL, &proc_diskstats_operations); 239 proc_create("diskstats", 0, NULL, &proc_diskstats_operations);