Searched refs:bps_limit (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/block/ |
D | blk-throttle.c | 784 static u64 calculate_bytes_allowed(u64 bps_limit, unsigned long jiffy_elapsed) in calculate_bytes_allowed() argument 786 return mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed, (u64)HZ); in calculate_bytes_allowed() 792 u64 bps_limit = tg_bps_limit(tg, rw); in __tg_update_carryover() local 801 if (bps_limit != U64_MAX) in __tg_update_carryover() 803 calculate_bytes_allowed(bps_limit, jiffy_elapsed) - in __tg_update_carryover() 858 u64 bps_limit, unsigned long *wait) in tg_within_bps_limit() argument 866 if (bps_limit == U64_MAX || bio_flagged(bio, BIO_BPS_THROTTLED)) { in tg_within_bps_limit() 879 bytes_allowed = calculate_bytes_allowed(bps_limit, jiffy_elapsed_rnd) + in tg_within_bps_limit() 889 jiffy_wait = div64_u64(extra_bytes * HZ, bps_limit); in tg_within_bps_limit() 913 u64 bps_limit = tg_bps_limit(tg, rw); in tg_may_dispatch() local [all …]
|
/linux-6.1.9/fs/btrfs/ |
D | discard.c | 354 u64 bps_limit = ((u64)kbps_limit) * SZ_1K; in __btrfs_discard_schedule_work() local 356 NSEC_PER_SEC, bps_limit); in __btrfs_discard_schedule_work()
|