Lines Matching refs:elapsed
846 unsigned long elapsed, in bdi_update_write_bandwidth() argument
866 if (unlikely(elapsed > period)) { in bdi_update_write_bandwidth()
867 do_div(bw, elapsed); in bdi_update_write_bandwidth()
871 bw += (u64)bdi->write_bandwidth * (period - elapsed); in bdi_update_write_bandwidth()
957 unsigned long elapsed) in bdi_update_dirty_ratelimit() argument
975 dirty_rate = (dirtied - bdi->dirtied_stamp) * HZ / elapsed; in bdi_update_dirty_ratelimit()
1123 unsigned long elapsed = now - bdi->bw_time_stamp; in __bdi_update_bandwidth() local
1130 if (elapsed < BANDWIDTH_INTERVAL) in __bdi_update_bandwidth()
1140 if (elapsed > HZ && time_before(bdi->bw_time_stamp, start_time)) in __bdi_update_bandwidth()
1147 dirtied, elapsed); in __bdi_update_bandwidth()
1149 bdi_update_write_bandwidth(bdi, elapsed, written); in __bdi_update_bandwidth()