Searched refs:bw (Results 1 – 1 of 1) sorted by relevance
1090 u64 bw; in wb_update_write_bandwidth() local1102 bw = written - min(written, wb->written_stamp); in wb_update_write_bandwidth()1103 bw *= HZ; in wb_update_write_bandwidth()1105 do_div(bw, elapsed); in wb_update_write_bandwidth()1106 avg = bw; in wb_update_write_bandwidth()1109 bw += (u64)wb->write_bandwidth * (period - elapsed); in wb_update_write_bandwidth()1110 bw >>= ilog2(period); in wb_update_write_bandwidth()1115 if (avg > old && old >= (unsigned long)bw) in wb_update_write_bandwidth()1118 if (avg < old && old <= (unsigned long)bw) in wb_update_write_bandwidth()1129 wb->write_bandwidth = bw; in wb_update_write_bandwidth()[all …]