]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: factor out a helper to read rwstat counter
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2019 10:26:19 +0000 (12:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 16:32:34 +0000 (10:32 -0600)
commitafc21ca2f311e0b45163414a314d8cc5ed4e6c0c
treebba7ae13bbc54a1ac631d2d7eb9c3fb67dd6ca3c
parent072069197bbab16c135fe4242a44e12935aa1043
blk-cgroup: factor out a helper to read rwstat counter

Trying to break up the crazy statements to something readable.
Also switch to an unsigned counter as it can't ever turn negative.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
include/linux/blk-cgroup.h