Home
last modified time | relevance | path

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

/block/
Dblk-throttle.c900 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd; in tg_with_in_iops_limit() local
912 jiffy_elapsed_rnd = roundup(jiffy_elapsed + 1, tg->td->throtl_slice); in tg_with_in_iops_limit()
921 tmp = (u64)iops_limit * jiffy_elapsed_rnd; in tg_with_in_iops_limit()
936 jiffy_wait = jiffy_elapsed_rnd - jiffy_elapsed; in tg_with_in_iops_limit()
948 unsigned long jiffy_elapsed, jiffy_wait, jiffy_elapsed_rnd; in tg_with_in_bps_limit() local
957 jiffy_elapsed = jiffy_elapsed_rnd = jiffies - tg->slice_start[rw]; in tg_with_in_bps_limit()
961 jiffy_elapsed_rnd = tg->td->throtl_slice; in tg_with_in_bps_limit()
963 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, tg->td->throtl_slice); in tg_with_in_bps_limit()
964 bytes_allowed = mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed_rnd, in tg_with_in_bps_limit()
984 jiffy_wait = jiffy_wait + (jiffy_elapsed_rnd - jiffy_elapsed); in tg_with_in_bps_limit()