Commit fd242090 authored by Yu Kuai's avatar Yu Kuai Committed by Greg Kroah-Hartman
Browse files

blk-throttle: use calculate_io/bytes_allowed() for throtl_trim_slice()



[ Upstream commit e8368b57 ]

There are no functional changes, just make the code cleaner.

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230816012708.1193747-4-yukuai1@huaweicloud.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Stable-dep-of: eead0056 ("blk-throttle: consider 'carryover_ios/bytes' in throtl_trim_slice()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8017a27c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment