Enhanced partition statistics: remove old partition statistics

Removes the now unused old partition statistic code.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by Jerome Marchand and committed by Jens Axboe c3c930d9 28f39d55

-7
-4
block/blk-core.c
··· 1219 1219 1220 1220 if (bio_sectors(bio) && bdev != bdev->bd_contains) { 1221 1221 struct hd_struct *p = bdev->bd_part; 1222 - const int rw = bio_data_dir(bio); 1223 - 1224 - p->sectors[rw] += bio_sectors(bio); 1225 - p->ios[rw]++; 1226 1222 1227 1223 bio->bi_sector += p->start_sect; 1228 1224 bio->bi_bdev = bdev->bd_contains;
-2
fs/partitions/check.c
··· 330 330 disk->part[part-1] = NULL; 331 331 p->start_sect = 0; 332 332 p->nr_sects = 0; 333 - p->ios[0] = p->ios[1] = 0; 334 - p->sectors[0] = p->sectors[1] = 0; 335 333 part_stat_set_all(p, 0); 336 334 kobject_put(p->holder_dir); 337 335 device_del(&p->dev);
-1
include/linux/genhd.h
··· 105 105 sector_t nr_sects; 106 106 struct device dev; 107 107 struct kobject *holder_dir; 108 - unsigned ios[2], sectors[2]; /* READs and WRITEs */ 109 108 int policy, partno; 110 109 #ifdef CONFIG_FAIL_MAKE_REQUEST 111 110 int make_it_fail;