blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
authorweiping zhang <zhangweiping@didichuxing.com>
Mon, 11 Dec 2017 14:56:25 +0000 (22:56 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Jan 2018 19:55:55 +0000 (12:55 -0700)
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>
block/blk-throttle.c

index 825bc29767e6699ac85675d319a9866b70cc9b84..e8428417ac0a7e4830c95052aad28306685f12e4 100644 (file)
@@ -1510,11 +1510,21 @@ static struct cftype throtl_legacy_files[] = {
                .private = (unsigned long)&blkcg_policy_throtl,
                .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 */
 };