diff options
| author | Christoph Hellwig <hch@lst.de> | 2019-06-06 12:26:20 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2019-06-20 10:32:34 -0600 |
| commit | 5d0b6e48cbef3219c0ed75e0e746c4ed259303c2 (patch) | |
| tree | 44575646c0c302eb4ce682d3b554a558fe6d5679 /tools/perf/scripts/python | |
| parent | blk-cgroup: factor out a helper to read rwstat counter (diff) | |
| download | linux-5d0b6e48cbef3219c0ed75e0e746c4ed259303c2.tar.gz linux-5d0b6e48cbef3219c0ed75e0e746c4ed259303c2.zip | |
blk-cgroup: pass blkg_rwstat structures by reference
Returning a structure generates rather bad code, so switch to passing
by reference. Also don't require the structure to be zeroed and add
to the 0-initialized counters, but actually set the counters to the
calculated value.
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
