Lines Matching refs:elapsed
1248 unsigned long elapsed, in wb_update_write_bandwidth() argument
1268 if (unlikely(elapsed > period)) { in wb_update_write_bandwidth()
1269 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth()
1273 bw += (u64)wb->write_bandwidth * (period - elapsed); in wb_update_write_bandwidth()
1353 unsigned long elapsed) in wb_update_dirty_ratelimit() argument
1373 dirty_rate = (dirtied - wb->dirtied_stamp) * HZ / elapsed; in wb_update_dirty_ratelimit()
1515 unsigned long elapsed; in __wb_update_bandwidth() local
1527 elapsed = max(now - wb->bw_time_stamp, 1UL); in __wb_update_bandwidth()
1533 wb_update_dirty_ratelimit(gdtc, dirtied, elapsed); in __wb_update_bandwidth()
1541 wb_update_dirty_ratelimit(mdtc, dirtied, elapsed); in __wb_update_bandwidth()
1544 wb_update_write_bandwidth(wb, elapsed, written); in __wb_update_bandwidth()
1565 unsigned long elapsed = now - READ_ONCE(wb->bw_time_stamp); in wb_bandwidth_estimate_start() local
1567 if (elapsed > WB_BANDWIDTH_IDLE_JIF && in wb_bandwidth_estimate_start()