|
@@ -69,17 +69,6 @@ static const struct file_operations proc_zoneinfo_file_operations = {
|
|
.release = seq_release,
|
|
.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
|
|
#ifdef CONFIG_BLOCK
|
|
static int diskstats_open(struct inode *inode, struct file *file)
|
|
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");
|
|
proc_symlink("mounts", NULL, "self/mounts");
|
|
|
|
|
|
/* And now for trickier ones */
|
|
/* 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);
|
|
proc_create("zoneinfo", S_IRUGO, NULL, &proc_zoneinfo_file_operations);
|
|
#ifdef CONFIG_BLOCK
|
|
#ifdef CONFIG_BLOCK
|
|
proc_create("diskstats", 0, NULL, &proc_diskstats_operations);
|
|
proc_create("diskstats", 0, NULL, &proc_diskstats_operations);
|