]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: pass blkg_rwstat structures by reference
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2019 10:26:20 +0000 (12:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 16:32:34 +0000 (10:32 -0600)
commit83120d30d6c28cb6e7f98b3a20f349fbefe66334
tree44575646c0c302eb4ce682d3b554a558fe6d5679
parent50e1233e00f4b47182a86169aee3f60a644f257c
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>
block/bfq-cgroup.c
block/blk-cgroup.c
include/linux/blk-cgroup.h