diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-08-29 05:22:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-12 09:19:48 +0300 |
commit | 681cd46fff8cd81e387747c7850f2e730d3e0b74 (patch) | |
tree | dc60bad94decee365519215f78077f02feb84663 /block/blk-throttle.h | |
parent | 8d6bbaada2e0a65f9012ac4c2506460160e7237a (diff) | |
download | linux-681cd46fff8cd81e387747c7850f2e730d3e0b74.tar.xz |
blk-throttle: factor out code to calculate ios/bytes_allowed
No functional changes, new apis will be used in later patches to
calculate wait time for throttled bios when new configuration is
submitted.
Noted this patch also rename tg_with_in_iops/bps_limit() to
tg_within_iops/bps_limit().
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220829022240.3348319-4-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-throttle.h')
0 files changed, 0 insertions, 0 deletions