Lines Matching refs:wb_thresh
138 unsigned long wb_thresh;
865 u64 wb_thresh;
875 wb_thresh = (thresh * (100 * BDI_RATIO_SCALE - bdi_min_ratio)) / (100 * BDI_RATIO_SCALE);
876 wb_thresh *= numerator;
877 wb_thresh = div64_ul(wb_thresh, denominator);
881 wb_thresh += (thresh * wb_min_ratio) / (100 * BDI_RATIO_SCALE);
882 if (wb_thresh > (thresh * wb_max_ratio) / (100 * BDI_RATIO_SCALE))
883 wb_thresh = thresh * wb_max_ratio / (100 * BDI_RATIO_SCALE);
885 return wb_thresh;
1007 unsigned long wb_thresh = dtc->wb_thresh;
1039 * two values: wb_dirty and wb_thresh. Let's consider an example:
1042 * Then wb_thresh is 1% of 20% of 16GB. This amounts to ~8K pages.
1062 if (dtc->wb_dirty >= wb_thresh)
1065 wb_setpoint = dirty_freerun_ceiling(wb_thresh,
1068 if (wb_setpoint == 0 || wb_setpoint == wb_thresh)
1072 wb_thresh);
1126 * For JBOD case, wb_thresh (not wb_dirty!) could fluctuate up to its
1128 * yields 100% pos_ratio fluctuation on suddenly doubled wb_thresh.
1130 if (unlikely(wb_thresh > dtc->thresh))
1131 wb_thresh = dtc->thresh;
1133 * It's very possible that wb_thresh is close to 0 not because the
1139 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8);
1142 * wb_setpoint = setpoint * wb_thresh / thresh
1144 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1);
1148 * (thresh - wb_thresh ~= 0) and transit to wb_thresh in JBOD case.
1150 * wb_thresh thresh - wb_thresh
1151 * span = --------- * (8 * write_bw) + ------------------ * wb_thresh
1154 span = (dtc->thresh - wb_thresh + 8 * write_bw) * (u64)x >> 16;
1168 x_intercept = wb_thresh / 2;
1397 * it's possible that wb_thresh is close to zero due to inactivity
1405 setpoint = (dtc->wb_thresh + dtc->wb_bg_thresh) / 2;
1627 * wb_thresh is not treated as some limiting factor as
1629 * - in JBOD setup, wb_thresh can fluctuate a lot
1631 * go into state (wb_dirty >> wb_thresh) either because
1632 * wb_dirty starts high, or because wb_thresh drops low.
1635 * wb_thresh. Instead the auxiliary wb control line in
1639 dtc->wb_thresh = __wb_calc_thresh(dtc);
1641 div64_u64(dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0;
1653 if (dtc->wb_thresh < 2 * wb_stat_error()) {
1709 thresh = gdtc->wb_thresh;
1734 m_thresh = mdtc->wb_thresh;
1801 dirty_freerun_ceiling(gdtc->wb_thresh,
1810 dirty_exceeded = (gdtc->wb_dirty > gdtc->wb_thresh) &&
1828 dirty_freerun_ceiling(mdtc->wb_thresh,
1837 dirty_exceeded |= (mdtc->wb_dirty > mdtc->wb_thresh) &&
1882 sdtc->wb_thresh,
1911 sdtc->wb_thresh,