diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-24 09:34:00 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-01 14:53:40 -0700 |
commit | 15e3d2c5cd53298272e59ad9072d3468f9dd3781 (patch) | |
tree | e526446b6b09c036e9aed966dbe2bdd252f5bb98 /block/blk-cgroup.c | |
parent | a782483cc1f875355690625d8253a232f2581418 (diff) | |
download | linux-stable-15e3d2c5cd53298272e59ad9072d3468f9dd3781.tar.gz linux-stable-15e3d2c5cd53298272e59ad9072d3468f9dd3781.tar.bz2 linux-stable-15e3d2c5cd53298272e59ad9072d3468f9dd3781.zip |
block: move disk stat accounting to struct block_device
Move the dkstats and stamp field to struct block_device in preparation
of killing struct hd_struct.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index ad02289a4f7f..79aa96240cec 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -830,7 +830,7 @@ static void blkcg_fill_root_iostats(void) for_each_possible_cpu(cpu) { struct disk_stats *cpu_dkstats; - cpu_dkstats = per_cpu_ptr(part->dkstats, cpu); + cpu_dkstats = per_cpu_ptr(part->bdev->bd_stats, cpu); tmp.ios[BLKG_IOSTAT_READ] += cpu_dkstats->ios[STAT_READ]; tmp.ios[BLKG_IOSTAT_WRITE] += |