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)
commit239eeb085753d4356f731a773f363eb5bed4fe81
treebba7ae13bbc54a1ac631d2d7eb9c3fb67dd6ca3c
parent1aa0a133fbabeca9e8785fb11de471841009d6d9
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