Lines Matching refs:wb_dirty
137 unsigned long wb_dirty; /* per-wb counterparts */
855 * if (wb_dirty < wb_setpoint) scale up pos_ratio
856 * if (wb_dirty > wb_setpoint) scale down pos_ratio
909 * The wb control line won't drop below pos_ratio=1/4, so that wb_dirty can
912 * card's wb_dirty may rush to many times higher than wb_setpoint.
953 * two values: wb_dirty and wb_thresh. Let's consider an example:
960 * wb_dirty is under wb_setpoint and vice versa.
970 if (dtc->wb_dirty < 8) {
976 if (dtc->wb_dirty >= wb_thresh)
985 wb_pos_ratio = pos_ratio_polynom(wb_setpoint, dtc->wb_dirty,
1022 * f(wb_dirty) := 1.0 + k * (wb_dirty - wb_setpoint)
1024 * x_intercept - wb_dirty
1040 * For JBOD case, wb_thresh (not wb_dirty!) could fluctuate up to its
1071 if (dtc->wb_dirty < x_intercept - span / 4) {
1072 pos_ratio = div64_u64(pos_ratio * (x_intercept - dtc->wb_dirty),
1083 if (dtc->wb_dirty < x_intercept) {
1084 if (dtc->wb_dirty > x_intercept / 8)
1086 dtc->wb_dirty);
1307 * Hence, to calculate "step" properly, we have to use wb_dirty as
1310 * We rampup dirty_ratelimit forcibly if wb_dirty is low because
1315 dirty = dtc->wb_dirty;
1316 if (dtc->wb_dirty < 8)
1317 setpoint = dtc->wb_dirty + 1;
1431 unsigned long wb_dirty)
1443 t = wb_dirty / (1 + bw / roundup_pow_of_two(1 + HZ / 8));
1534 * go into state (wb_dirty >> wb_thresh) either because
1535 * wb_dirty starts high, or because wb_thresh drops low.
1537 * dirtiers for 100 seconds until wb_dirty drops under
1540 * at some rate <= (write_bw / 2) for bringing down wb_dirty.
1558 dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK);
1561 dtc->wb_dirty = wb_reclaimable + wb_stat(wb, WB_WRITEBACK);
1610 dirty = gdtc->wb_dirty;
1635 m_dirty = mdtc->wb_dirty;
1688 gdtc->wb_dirty <
1698 dirty_exceeded = (gdtc->wb_dirty > gdtc->wb_thresh) &&
1715 mdtc->wb_dirty <
1725 dirty_exceeded |= (mdtc->wb_dirty > mdtc->wb_thresh) &&
1747 max_pause = wb_max_pause(wb, sdtc->wb_dirty);
1774 sdtc->wb_dirty,
1803 sdtc->wb_dirty,
1832 * more page. However wb_dirty has accounting errors. So use
1835 if (sdtc->wb_dirty <= wb_stat_error())