Lines Matching refs:elapsed
1072 unsigned long elapsed, in wb_update_write_bandwidth() argument
1092 if (unlikely(elapsed > period)) { in wb_update_write_bandwidth()
1093 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth()
1097 bw += (u64)wb->write_bandwidth * (period - elapsed); in wb_update_write_bandwidth()
1177 unsigned long elapsed) in wb_update_dirty_ratelimit() argument
1197 dirty_rate = (dirtied - wb->dirtied_stamp) * HZ / elapsed; in wb_update_dirty_ratelimit()
1339 unsigned long elapsed; in __wb_update_bandwidth() local
1351 elapsed = max(now - wb->bw_time_stamp, 1UL); in __wb_update_bandwidth()
1357 wb_update_dirty_ratelimit(gdtc, dirtied, elapsed); in __wb_update_bandwidth()
1365 wb_update_dirty_ratelimit(mdtc, dirtied, elapsed); in __wb_update_bandwidth()
1368 wb_update_write_bandwidth(wb, elapsed, written); in __wb_update_bandwidth()
1389 unsigned long elapsed = now - READ_ONCE(wb->bw_time_stamp); in wb_bandwidth_estimate_start() local
1391 if (elapsed > WB_BANDWIDTH_IDLE_JIF && in wb_bandwidth_estimate_start()