Enhanced partition statistics: remove old partition statistics
authorJerome Marchand <jmarchan@redhat.com>
Fri, 8 Feb 2008 11:06:21 +0000 (12:06 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 8 Feb 2008 11:42:01 +0000 (12:42 +0100)
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>
block/blk-core.c
fs/partitions/check.c
include/linux/genhd.h

index 2358fc5de5a4d01de85456e5b6a1ff3cdc261da1..e9754dc98ec4de5d73fa246f854272e1bc6f1295 100644 (file)
@@ -1219,10 +1219,6 @@ static inline void blk_partition_remap(struct bio *bio)
 
        if (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;
index 950bdb4b8f53a679ce3aab3bdae2b9337ec7b3f9..03f808c5b79d4733e55b2c017ff8a5ab399c45fc 100644 (file)
@@ -330,8 +330,6 @@ void delete_partition(struct gendisk *disk, int part)
        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);
        kobject_put(p->holder_dir);
        device_del(&p->dev);
index 4cf25a5f415968963ce2281853c2bc0409b68337..09a3b18918c70d89c9ab795ce40620d4c0067803 100644 (file)
@@ -105,7 +105,6 @@ struct hd_struct {
        sector_t nr_sects;
        struct device dev;
        struct kobject *holder_dir;
-       unsigned ios[2], sectors[2];    /* READs and WRITEs */
        int policy, partno;
 #ifdef CONFIG_FAIL_MAKE_REQUEST
        int make_it_fail;