Commit 17534c6f authored by weiping zhang's avatar weiping zhang Committed by Jens Axboe

blk-throttle: export io_serviced_recursive, io_service_bytes_recursive

export these two interface for cgroup-v1.
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarweiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2c2086af
...@@ -1510,11 +1510,21 @@ static struct cftype throtl_legacy_files[] = { ...@@ -1510,11 +1510,21 @@ static struct cftype throtl_legacy_files[] = {
.private = (unsigned long)&blkcg_policy_throtl, .private = (unsigned long)&blkcg_policy_throtl,
.seq_show = blkg_print_stat_bytes, .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", .name = "throttle.io_serviced",
.private = (unsigned long)&blkcg_policy_throtl, .private = (unsigned long)&blkcg_policy_throtl,
.seq_show = blkg_print_stat_ios, .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 */ { } /* terminate */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment