Enhanced partition statistics: remove old partition statistics
PATCH 8/8 Enhanced partition statistics: remove old partition statistics
Removes the now unused old partition statistic code.
Signed-off-by Jerome Marchand <[email protected]>
--- block/ll_rw_blk.c | 4 ---- fs/partitions/check.c | 2 -- include/linux/genhd.h | 1 - 3 files changed, 7 deletions(-)
block/ll_rw_blk.c +0 -4
@@ -3117,10 +3117,6 @@ static inline void blk_partition_remap(sif (bio_sectors (bio) && bdev != bdev->bd_contains) {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_bdev = bdev->bd_contains;
fs/partitions/check.c +0 -2
@@ -377,8 +377,6 @@ void delete_partition(struct gendisk *di disk->part[part-1 ] =NULL ; p->start_sect =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 );sysfs_remove_link (&p->kobj,"subsystem" );kobject_unregister (p->holder_dir);
include/linux/genhd.h +0 -1
@@ -86,7 +86,6 @@ struct hd_struct {sector_t nr_sects;struct kobject kobj;struct kobject *holder_dir; -unsigned ios[2 ], sectors[2 ];/* READs and WRITEs */ int policy, partno;#ifdef CONFIG_FAIL_MAKE_REQUEST int make_it_fail;