aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-10-04 15:53:21 -0400
committerAlexey Dobriyan <adobriyan@gmail.com>2008-10-23 07:07:31 -0400
commitf500975a3f3ecf3611d79f1d933906753460b9f2 (patch)
treedf3728998ca1638ecbccf4ab6f401f9a2cbdba88 /fs/proc
parent8591cf43224980a0bc9216a4e50b0a740f8cba35 (diff)
proc: move rest of /proc/partitions code to block/genhd.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_misc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 8974809be5f6..253ea50c4393 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -106,17 +106,6 @@ static const struct file_operations proc_vmstat_file_operations = {
106}; 106};
107 107
108#ifdef CONFIG_BLOCK 108#ifdef CONFIG_BLOCK
109static int partitions_open(struct inode *inode, struct file *file)
110{
111 return seq_open(file, &partitions_op);
112}
113static const struct file_operations proc_partitions_operations = {
114 .open = partitions_open,
115 .read = seq_read,
116 .llseek = seq_lseek,
117 .release = seq_release,
118};
119
120static int diskstats_open(struct inode *inode, struct file *file) 109static int diskstats_open(struct inode *inode, struct file *file)
121{ 110{
122 return seq_open(file, &diskstats_op); 111 return seq_open(file, &diskstats_op);
@@ -519,9 +508,6 @@ void __init proc_misc_init(void)
519 proc_symlink("mounts", NULL, "self/mounts"); 508 proc_symlink("mounts", NULL, "self/mounts");
520 509
521 /* And now for trickier ones */ 510 /* And now for trickier ones */
522#ifdef CONFIG_BLOCK
523 proc_create("partitions", 0, NULL, &proc_partitions_operations);
524#endif
525 proc_create("stat", 0, NULL, &proc_stat_operations); 511 proc_create("stat", 0, NULL, &proc_stat_operations);
526 proc_create("interrupts", 0, NULL, &proc_interrupts_operations); 512 proc_create("interrupts", 0, NULL, &proc_interrupts_operations);
527#ifdef CONFIG_SLABINFO 513#ifdef CONFIG_SLABINFO