Home
last modified time | relevance | path

Searched refs:jiffy_elapsed_rnd (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/block/
Dblk-throttle.c836 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd; in tg_within_iops_limit() local
845 jiffy_elapsed_rnd = roundup(jiffy_elapsed + 1, tg->td->throtl_slice); in tg_within_iops_limit()
846 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd) + in tg_within_iops_limit()
852 jiffy_wait = jiffy_elapsed_rnd - jiffy_elapsed; in tg_within_iops_limit()
862 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd; in tg_within_bps_limit() local
870 jiffy_elapsed = jiffy_elapsed_rnd = jiffies - tg->slice_start[rw]; in tg_within_bps_limit()
874 jiffy_elapsed_rnd = tg->td->throtl_slice; in tg_within_bps_limit()
876 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, tg->td->throtl_slice); in tg_within_bps_limit()
877 bytes_allowed = calculate_bytes_allowed(bps_limit, jiffy_elapsed_rnd) + in tg_within_bps_limit()
893 jiffy_wait = jiffy_wait + (jiffy_elapsed_rnd - jiffy_elapsed); in tg_within_bps_limit()