summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-06 04:17:48 +0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 17:12:51 +0400
commitb6aa44ab698c7df9d951d3eb45c4fcb8ba68fb25 (patch)
tree3ddf82053cc10e4811e77918fb00aad1c09c94c1 /fs
parent74e2e8e8ce7b3c0f878a349f9fa6cf2831548eef (diff)
downloadop-kernel-dev-b6aa44ab698c7df9d951d3eb45c4fcb8ba68fb25.zip
op-kernel-dev-b6aa44ab698c7df9d951d3eb45c4fcb8ba68fb25.tar.gz
proc: move /proc/vmstat 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')
-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 900331a..e7a301d 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 = {
.release = seq_release,
};
-static int vmstat_open(struct inode *inode, struct file *file)
-{
- return seq_open(file, &vmstat_op);
-}
-static const struct file_operations proc_vmstat_file_operations = {
- .open = vmstat_open,
- .read = seq_read,
- .llseek = seq_lseek,
- .release = seq_release,
-};
-
#ifdef CONFIG_BLOCK
static int diskstats_open(struct inode *inode, struct file *file)
{
@@ -245,7 +234,6 @@ void __init proc_misc_init(void)
proc_symlink("mounts", NULL, "self/mounts");
/* And now for trickier ones */
- proc_create("vmstat", S_IRUGO, NULL, &proc_vmstat_file_operations);
proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
#ifdef CONFIG_BLOCK
proc_create("diskstats", 0, NULL, &proc_diskstats_operations);
OpenPOWER on IntegriCloud