OSDN Git Service

blk-cgroup: make iostat functions visible to stat printing
authorBoris Burkov <boris@bur.io>
Mon, 1 Jun 2020 20:11:43 +0000 (13:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 18 Jul 2020 02:17:59 +0000 (20:17 -0600)
commitcd1fc4b98fb5953a220d690d45b11470fd9325d6
tree283552653ea5462dbdbd3b6c64b8a590e5ee3024
parent9b15d109a6b2c0c604c588d49a5a927dac6dd616
blk-cgroup: make iostat functions visible to stat printing

Previously, the code which printed io.stat only needed access to the
generic rstat flushing code, but since we plan to write some more
specific code for preparing root cgroup stats, we need to manipulate
iostat structs directly. Since declaring static functions ahead does not
seem like common practice in this file, simply move the iostat functions
up. We only plan to use blkg_iostat_set, but it seems better to keep them
all together.

Signed-off-by: Boris Burkov <boris@bur.io>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c