aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-06 04:55:38 -0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 09:57:37 -0400
commit31d85ab28e71b0c938e0ef48af45747e80d99b53 (patch)
tree1cd97bee97abb008dd3591da2a001e3e85356fb6 /fs
parent5c9fe6281b75832e8d2555ec8700ea763d9a865e (diff)
proc: move /proc/diskstats boilerplate to block/genhd.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/proc_misc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 8f3a6f085c5f..7c22831efd94 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -57,19 +57,6 @@
57#include <asm/div64.h> 57#include <asm/div64.h>
58#include "internal.h" 58#include "internal.h"
59 59
60#ifdef CONFIG_BLOCK
61static int diskstats_open(struct inode *inode, struct file *file)
62{
63 return seq_open(file, &diskstats_op);
64}
65static const struct file_operations proc_diskstats_operations = {
66 .open = diskstats_open,
67 .read = seq_read,
68 .llseek = seq_lseek,
69 .release = seq_release,
70};
71#endif
72
73#ifdef CONFIG_MODULES 60#ifdef CONFIG_MODULES
74extern const struct seq_operations modules_op; 61extern const struct seq_operations modules_op;
75static int modules_open(struct inode *inode, struct file *file) 62static int modules_open(struct inode *inode, struct file *file)
@@ -222,9 +209,6 @@ void __init proc_misc_init(void)
222 proc_symlink("mounts", NULL, "self/mounts"); 209 proc_symlink("mounts", NULL, "self/mounts");
223 210
224 /* And now for trickier ones */ 211 /* And now for trickier ones */
225#ifdef CONFIG_BLOCK
226 proc_create("diskstats", 0, NULL, &proc_diskstats_operations);
227#endif
228#ifdef CONFIG_MODULES 212#ifdef CONFIG_MODULES
229 proc_create("modules", 0, NULL, &proc_modules_operations); 213 proc_create("modules", 0, NULL, &proc_modules_operations);
230#endif 214#endif