diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-05 20:15:36 -0400 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-23 08:33:29 -0400 |
commit | 74e2e8e8ce7b3c0f878a349f9fa6cf2831548eef (patch) | |
tree | 1de0e09b982c8c152f93b74842587e4c56df5484 /fs/proc | |
parent | 8f32f7e5ac2ed11b0659b6b55af926f3d58ffd9d (diff) |
proc: move /proc/pagetypeinfo boilerplate to mm/vmstat.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index a35e50659b8d..900331a634ef 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 | ||
60 | static int pagetypeinfo_open(struct inode *inode, struct file *file) | ||
61 | { | ||
62 | return seq_open(file, &pagetypeinfo_op); | ||
63 | } | ||
64 | |||
65 | static const struct file_operations pagetypeinfo_file_ops = { | ||
66 | .open = pagetypeinfo_open, | ||
67 | .read = seq_read, | ||
68 | .llseek = seq_lseek, | ||
69 | .release = seq_release, | ||
70 | }; | ||
71 | |||
72 | static int zoneinfo_open(struct inode *inode, struct file *file) | 60 | static int zoneinfo_open(struct inode *inode, struct file *file) |
73 | { | 61 | { |
74 | return seq_open(file, &zoneinfo_op); | 62 | return seq_open(file, &zoneinfo_op); |
@@ -257,7 +245,6 @@ void __init proc_misc_init(void) | |||
257 | proc_symlink("mounts", NULL, "self/mounts"); | 245 | proc_symlink("mounts", NULL, "self/mounts"); |
258 | 246 | ||
259 | /* And now for trickier ones */ | 247 | /* And now for trickier ones */ |
260 | proc_create("pagetypeinfo", S_IRUGO, NULL, &pagetypeinfo_file_ops); | ||
261 | proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); | 248 | proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations); |
262 | proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); | 249 | proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations); |
263 | #ifdef CONFIG_BLOCK | 250 | #ifdef CONFIG_BLOCK |