diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-12-11 09:56:25 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-18 14:55:55 -0500 |
commit | 17534c6f2c065ad8e34ff6f013e5afaa90428512 (patch) | |
tree | 075d77bb924aa8e4d05668676cd13e7f101bb7c0 | |
parent | 2c2086afc2b8b974fac32cb028e73dc27bfae442 (diff) |
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>
-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[] = { | |||
1511 | .seq_show = blkg_print_stat_bytes, | 1511 | .seq_show = blkg_print_stat_bytes, |
1512 | }, | 1512 | }, |
1513 | { | 1513 | { |
1514 | .name = "throttle.io_service_bytes_recursive", | ||
1515 | .private = (unsigned long)&blkcg_policy_throtl, | ||
1516 | .seq_show = blkg_print_stat_bytes_recursive, | ||
1517 | }, | ||
1518 | { | ||
1514 | .name = "throttle.io_serviced", | 1519 | .name = "throttle.io_serviced", |
1515 | .private = (unsigned long)&blkcg_policy_throtl, | 1520 | .private = (unsigned long)&blkcg_policy_throtl, |
1516 | .seq_show = blkg_print_stat_ios, | 1521 | .seq_show = blkg_print_stat_ios, |
1517 | }, | 1522 | }, |
1523 | { | ||
1524 | .name = "throttle.io_serviced_recursive", | ||
1525 | .private = (unsigned long)&blkcg_policy_throtl, | ||
1526 | .seq_show = blkg_print_stat_ios_recursive, | ||
1527 | }, | ||
1518 | { } /* terminate */ | 1528 | { } /* terminate */ |
1519 | }; | 1529 | }; |
1520 | 1530 | ||