Commit c3c930d9 authored by Jerome Marchand's avatar Jerome Marchand Committed by Jens Axboe

Enhanced partition statistics: remove old partition statistics

Removes the now unused old partition statistic code.
Signed-off-by: default avatarJerome Marchand <jmarchan@redhat.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 28f39d55
...@@ -1219,10 +1219,6 @@ static inline void blk_partition_remap(struct bio *bio) ...@@ -1219,10 +1219,6 @@ static inline void blk_partition_remap(struct bio *bio)
if (bio_sectors(bio) && bdev != bdev->bd_contains) { if (bio_sectors(bio) && bdev != bdev->bd_contains) {
struct hd_struct *p = bdev->bd_part; struct hd_struct *p = bdev->bd_part;
const int rw = bio_data_dir(bio);
p->sectors[rw] += bio_sectors(bio);
p->ios[rw]++;
bio->bi_sector += p->start_sect; bio->bi_sector += p->start_sect;
bio->bi_bdev = bdev->bd_contains; bio->bi_bdev = bdev->bd_contains;
......
...@@ -330,8 +330,6 @@ void delete_partition(struct gendisk *disk, int part) ...@@ -330,8 +330,6 @@ void delete_partition(struct gendisk *disk, int part)
disk->part[part-1] = NULL; disk->part[part-1] = NULL;
p->start_sect = 0; p->start_sect = 0;
p->nr_sects = 0; p->nr_sects = 0;
p->ios[0] = p->ios[1] = 0;
p->sectors[0] = p->sectors[1] = 0;
part_stat_set_all(p, 0); part_stat_set_all(p, 0);
kobject_put(p->holder_dir); kobject_put(p->holder_dir);
device_del(&p->dev); device_del(&p->dev);
......
...@@ -105,7 +105,6 @@ struct hd_struct { ...@@ -105,7 +105,6 @@ struct hd_struct {
sector_t nr_sects; sector_t nr_sects;
struct device dev; struct device dev;
struct kobject *holder_dir; struct kobject *holder_dir;
unsigned ios[2], sectors[2]; /* READs and WRITEs */
int policy, partno; int policy, partno;
#ifdef CONFIG_FAIL_MAKE_REQUEST #ifdef CONFIG_FAIL_MAKE_REQUEST
int make_it_fail; int make_it_fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment