]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8586c999a63d8260cea2bb7e7bb8d7a878105c2c
tree283552653ea5462dbdbd3b6c64b8a590e5ee3024
parent9797b18e041822b770dab4a052944341f2c8e04d
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