Searched refs:avg (Results 1 – 1 of 1) sorted by relevance
1088 unsigned long avg = wb->avg_write_bandwidth; in wb_update_write_bandwidth() local1106 avg = bw; in wb_update_write_bandwidth()1115 if (avg > old && old >= (unsigned long)bw) in wb_update_write_bandwidth()1116 avg -= (avg - old) >> 3; in wb_update_write_bandwidth()1118 if (avg < old && old <= (unsigned long)bw) in wb_update_write_bandwidth()1119 avg += (old - avg) >> 3; in wb_update_write_bandwidth()1123 avg = max(avg, 1LU); in wb_update_write_bandwidth()1125 long delta = avg - wb->avg_write_bandwidth; in wb_update_write_bandwidth()1130 wb->avg_write_bandwidth = avg; in wb_update_write_bandwidth()