diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-12-11 17:56:25 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-18 22:55:55 +0300 |
commit | 17534c6f2c065ad8e34ff6f013e5afaa90428512 (patch) | |
tree | 075d77bb924aa8e4d05668676cd13e7f101bb7c0 /block | |
parent | 2c2086afc2b8b974fac32cb028e73dc27bfae442 (diff) | |
download | linux-17534c6f2c065ad8e34ff6f013e5afaa90428512.tar.xz |
blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
export these two interface for cgroup-v1.
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-throttle.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 825bc29767e6..e8428417ac0a 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -1511,10 +1511,20 @@ static struct cftype throtl_legacy_files[] = { .seq_show = blkg_print_stat_bytes, }, { + .name = "throttle.io_service_bytes_recursive", + .private = (unsigned long)&blkcg_policy_throtl, + .seq_show = blkg_print_stat_bytes_recursive, + }, + { .name = "throttle.io_serviced", .private = (unsigned long)&blkcg_policy_throtl, .seq_show = blkg_print_stat_ios, }, + { + .name = "throttle.io_serviced_recursive", + .private = (unsigned long)&blkcg_policy_throtl, + .seq_show = blkg_print_stat_ios_recursive, + }, { } /* terminate */ }; |