Lines Matching refs:wb_dirty
137 unsigned long wb_dirty; /* per-wb counterparts */
941 * if (wb_dirty < wb_setpoint) scale up pos_ratio
942 * if (wb_dirty > wb_setpoint) scale down pos_ratio
995 * The wb control line won't drop below pos_ratio=1/4, so that wb_dirty can
998 * card's wb_dirty may rush to many times higher than wb_setpoint.
1039 * two values: wb_dirty and wb_thresh. Let's consider an example:
1046 * wb_dirty is under wb_setpoint and vice versa.
1056 if (dtc->wb_dirty < 8) {
1062 if (dtc->wb_dirty >= wb_thresh)
1071 wb_pos_ratio = pos_ratio_polynom(wb_setpoint, dtc->wb_dirty,
1108 * f(wb_dirty) := 1.0 + k * (wb_dirty - wb_setpoint)
1110 * x_intercept - wb_dirty
1126 * For JBOD case, wb_thresh (not wb_dirty!) could fluctuate up to its
1157 if (dtc->wb_dirty < x_intercept - span / 4) {
1158 pos_ratio = div64_u64(pos_ratio * (x_intercept - dtc->wb_dirty),
1169 if (dtc->wb_dirty < x_intercept) {
1170 if (dtc->wb_dirty > x_intercept / 8)
1172 dtc->wb_dirty);
1393 * Hence, to calculate "step" properly, we have to use wb_dirty as
1396 * We rampup dirty_ratelimit forcibly if wb_dirty is low because
1401 dirty = dtc->wb_dirty;
1402 if (dtc->wb_dirty < 8)
1403 setpoint = dtc->wb_dirty + 1;
1528 unsigned long wb_dirty)
1540 t = wb_dirty / (1 + bw / roundup_pow_of_two(1 + HZ / 8));
1631 * go into state (wb_dirty >> wb_thresh) either because
1632 * wb_dirty starts high, or because wb_thresh drops low.
1634 * dirtiers for 100 seconds until wb_dirty drops under
1637 * at some rate <= (write_bw / 2) for bringing down wb_dirty.
1655 dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK);
1658 dtc->wb_dirty = wb_reclaimable + wb_stat(wb, WB_WRITEBACK);
1708 dirty = gdtc->wb_dirty;
1733 m_dirty = mdtc->wb_dirty;
1800 gdtc->wb_dirty <
1810 dirty_exceeded = (gdtc->wb_dirty > gdtc->wb_thresh) &&
1827 mdtc->wb_dirty <
1837 dirty_exceeded |= (mdtc->wb_dirty > mdtc->wb_thresh) &&
1856 max_pause = wb_max_pause(wb, sdtc->wb_dirty);
1883 sdtc->wb_dirty,
1912 sdtc->wb_dirty,
1945 * more page. However wb_dirty has accounting errors. So use
1948 if (sdtc->wb_dirty <= wb_stat_error())