Home
last modified time | relevance | path

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

/Linux-v6.1/block/
Dblk-throttle.c829 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd; in tg_within_iops_limit() local
840 jiffy_elapsed_rnd = roundup(jiffy_elapsed + 1, tg->td->throtl_slice); in tg_within_iops_limit()
841 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd) + in tg_within_iops_limit()
850 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
872 jiffy_elapsed = jiffy_elapsed_rnd = jiffies - tg->slice_start[rw]; in tg_within_bps_limit()
876 jiffy_elapsed_rnd = tg->td->throtl_slice; in tg_within_bps_limit()
878 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, tg->td->throtl_slice); in tg_within_bps_limit()
879 bytes_allowed = calculate_bytes_allowed(bps_limit, jiffy_elapsed_rnd) + in tg_within_bps_limit()
898 jiffy_wait = jiffy_wait + (jiffy_elapsed_rnd - jiffy_elapsed); in tg_within_bps_limit()