mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
blk-throttle: use calculate_io/bytes_allowed() for throtl_trim_slice()
[ Upstream commite8368b57c0] There are no functional changes, just make the code cleaner. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20230816012708.1193747-4-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Stable-dep-of:eead005664("blk-throttle: consider 'carryover_ios/bytes' in throtl_trim_slice()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8017a27cec
commit
fd2420905c
1 changed files with 41 additions and 45 deletions
Loading…
Add table
Add a link
Reference in a new issue