aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-05 20:19:42 -0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 09:35:04 -0400
commit5c9fe6281b75832e8d2555ec8700ea763d9a865e (patch)
treea8ef6a23598322e1f93ba5e7ed8d24981f73ac8b /fs/proc
parentb6aa44ab698c7df9d951d3eb45c4fcb8ba68fb25 (diff)
proc: move /proc/zoneinfo boilerplate to mm/vmstat.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Christoph Lameter <cl@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_misc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index e7a301d5d432..8f3a6f085c5f 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -57,18 +57,6 @@
57#include <asm/div64.h> 57#include <asm/div64.h>
58#include "internal.h" 58#include "internal.h"
59 59
60static int zoneinfo_open(struct inode *inode, struct file *file)
61{
62 return seq_open(file, &zoneinfo_op);
63}
64
65static const struct file_operations proc_zoneinfo_file_operations = {
66 .open = zoneinfo_open,
67 .read = seq_read,
68 .llseek = seq_lseek,
69 .release = seq_release,
70};
71
72#ifdef CONFIG_BLOCK 60#ifdef CONFIG_BLOCK
73static int diskstats_open(struct inode *inode, struct file *file) 61static int diskstats_open(struct inode *inode, struct file *file)
74{ 62{
@@ -234,7 +222,6 @@ void __init proc_misc_init(void)
234 proc_symlink("mounts", NULL, "self/mounts"); 222 proc_symlink("mounts", NULL, "self/mounts");
235 223
236 /* And now for trickier ones */ 224 /* And now for trickier ones */
237 proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
238#ifdef CONFIG_BLOCK 225#ifdef CONFIG_BLOCK
239 proc_create("diskstats", 0, NULL, &proc_diskstats_operations); 226 proc_create("diskstats", 0, NULL, &proc_diskstats_operations);
240#endif 227#endif