summaryrefslogtreecommitdiff
path: root/block/blk-throttle.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-08-29 05:22:39 +0300
committerJens Axboe <axboe@kernel.dk>2022-09-12 09:19:48 +0300
commit681cd46fff8cd81e387747c7850f2e730d3e0b74 (patch)
treedc60bad94decee365519215f78077f02feb84663 /block/blk-throttle.h
parent8d6bbaada2e0a65f9012ac4c2506460160e7237a (diff)
downloadlinux-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