diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-04 23:53:21 +0400 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-23 15:07:31 +0400 |
commit | f500975a3f3ecf3611d79f1d933906753460b9f2 (patch) | |
tree | df3728998ca1638ecbccf4ab6f401f9a2cbdba88 /fs | |
parent | 8591cf43224980a0bc9216a4e50b0a740f8cba35 (diff) | |
download | linux-3.10-f500975a3f3ecf3611d79f1d933906753460b9f2.tar.gz linux-3.10-f500975a3f3ecf3611d79f1d933906753460b9f2.tar.bz2 linux-3.10-f500975a3f3ecf3611d79f1d933906753460b9f2.zip |
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')
-rw-r--r-- | fs/proc/proc_misc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 8974809be5f..253ea50c439 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 = { }; #ifdef CONFIG_BLOCK -static int partitions_open(struct inode *inode, struct file *file) -{ - return seq_open(file, &partitions_op); -} -static const struct file_operations proc_partitions_operations = { - .open = partitions_open, - .read = seq_read, - .llseek = seq_lseek, - .release = seq_release, -}; - static int diskstats_open(struct inode *inode, struct file *file) { return seq_open(file, &diskstats_op); @@ -519,9 +508,6 @@ void __init proc_misc_init(void) proc_symlink("mounts", NULL, "self/mounts"); /* And now for trickier ones */ -#ifdef CONFIG_BLOCK - proc_create("partitions", 0, NULL, &proc_partitions_operations); -#endif proc_create("stat", 0, NULL, &proc_stat_operations); proc_create("interrupts", 0, NULL, &proc_interrupts_operations); #ifdef CONFIG_SLABINFO |