Home
last modified time | relevance | path

Searched refs:bps_limit (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/block/
H A Dblk-throttle.c724 static u64 calculate_bytes_allowed(u64 bps_limit, unsigned long jiffy_elapsed) in calculate_bytes_allowed() argument
730 if (ilog2(bps_limit) + ilog2(jiffy_elapsed) - ilog2(HZ) > 62) in calculate_bytes_allowed()
732 return mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed, (u64)HZ); in calculate_bytes_allowed()
799 u64 bps_limit = tg_bps_limit(tg, rw); in __tg_update_carryover() local
808 if (bps_limit != U64_MAX) in __tg_update_carryover()
810 calculate_bytes_allowed(bps_limit, jiffy_elapsed) - in __tg_update_carryover()
857 u64 bps_limit) in tg_within_bps_limit()
866 if (bps_limit == U64_MAX || bio_flagged(bio, BIO_BPS_THROTTLED)) { in tg_within_bps_limit()
877 bytes_allowed = calculate_bytes_allowed(bps_limit, jiffy_elapsed_rnd) + in tg_within_bps_limit()
884 jiffy_wait = div64_u64(extra_bytes * HZ, bps_limit); in tg_within_bps_limit()
856 tg_within_bps_limit(struct throtl_grp *tg, struct bio *bio, u64 bps_limit) tg_within_bps_limit() argument
906 u64 bps_limit = tg_bps_limit(tg, rw); tg_may_dispatch() local
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Ddiscard.c352 u64 bps_limit = ((u64)kbps_limit) * SZ_1K; in __btrfs_discard_schedule_work() local
354 MSEC_PER_SEC, bps_limit); in __btrfs_discard_schedule_work()
/kernel/linux/linux-6.6/fs/btrfs/
H A Ddiscard.c396 u64 bps_limit = ((u64)kbps_limit) * SZ_1K; in __btrfs_discard_schedule_work() local
398 NSEC_PER_SEC, bps_limit); in __btrfs_discard_schedule_work()
/kernel/linux/linux-5.10/block/
H A Dblk-throttle.c945 u64 bps_limit, unsigned long *wait) in tg_with_in_bps_limit()
952 if (bps_limit == U64_MAX) { in tg_with_in_bps_limit()
965 bytes_allowed = mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed_rnd, in tg_with_in_bps_limit()
976 jiffy_wait = div64_u64(extra_bytes * HZ, bps_limit); in tg_with_in_bps_limit()
1000 u64 bps_limit = tg_bps_limit(tg, rw); in tg_may_dispatch() local
1013 if (bps_limit == U64_MAX && iops_limit == UINT_MAX) { in tg_may_dispatch()
1038 if (tg_with_in_bps_limit(tg, bio, bps_limit, &bps_wait) && in tg_may_dispatch()
944 tg_with_in_bps_limit(struct throtl_grp *tg, struct bio *bio, u64 bps_limit, unsigned long *wait) tg_with_in_bps_limit() argument

Completed in 8 milliseconds