diff options
author | 2015-08-18 14:55:25 -0700 | |
---|---|---|
committer | 2015-08-18 15:49:18 -0700 | |
commit | 702747cabe737fe9b358739443d539f10cc7c715 (patch) | |
tree | ff92a88a4465a3aedd9a7491ecc4e6c618368b85 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | blkcg: move io_service_bytes and io_serviced stats into blkcg_gq (diff) | |
download | wireguard-linux-702747cabe737fe9b358739443d539f10cc7c715.tar.xz wireguard-linux-702747cabe737fe9b358739443d539f10cc7c715.zip |
blkcg: remove cfqg_stats->sectors
cfq_stats->sectors is a blkg_stat which keeps track of the total
number of sectors serviced; however, this can be trivially calculated
from blkcg_gq->stat_bytes. The only thing necessary is adding up
READs and WRITEs and then dividing by sector size.
Remove cfqg_stats->sectors and make cfq print "sectors" and
"sectors_recursive" from stat_bytes.
While this is a bit more code, it removes duplicate stat allocations
and updates and ensures that the reported stats stay in tune with each
other.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions