Lines Matching refs:wb_thresh
138 unsigned long wb_thresh;
779 u64 wb_thresh;
789 wb_thresh = (thresh * (100 - bdi_min_ratio)) / 100;
790 wb_thresh *= numerator;
791 wb_thresh = div64_ul(wb_thresh, denominator);
795 wb_thresh += (thresh * wb_min_ratio) / 100;
796 if (wb_thresh > (thresh * wb_max_ratio) / 100)
797 wb_thresh = thresh * wb_max_ratio / 100;
799 return wb_thresh;
921 unsigned long wb_thresh = dtc->wb_thresh;
953 * two values: wb_dirty and wb_thresh. Let's consider an example:
956 * Then wb_thresh is 1% of 20% of 16GB. This amounts to ~8K pages.
976 if (dtc->wb_dirty >= wb_thresh)
979 wb_setpoint = dirty_freerun_ceiling(wb_thresh,
982 if (wb_setpoint == 0 || wb_setpoint == wb_thresh)
986 wb_thresh);
1040 * For JBOD case, wb_thresh (not wb_dirty!) could fluctuate up to its
1042 * yields 100% pos_ratio fluctuation on suddenly doubled wb_thresh.
1044 if (unlikely(wb_thresh > dtc->thresh))
1045 wb_thresh = dtc->thresh;
1047 * It's very possible that wb_thresh is close to 0 not because the
1053 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8);
1056 * wb_setpoint = setpoint * wb_thresh / thresh
1058 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1);
1062 * (thresh - wb_thresh ~= 0) and transit to wb_thresh in JBOD case.
1064 * wb_thresh thresh - wb_thresh
1065 * span = --------- * (8 * write_bw) + ------------------ * wb_thresh
1068 span = (dtc->thresh - wb_thresh + 8 * write_bw) * (u64)x >> 16;
1082 x_intercept = wb_thresh / 2;
1311 * it's possible that wb_thresh is close to zero due to inactivity
1319 setpoint = (dtc->wb_thresh + dtc->wb_bg_thresh) / 2;
1530 * wb_thresh is not treated as some limiting factor as
1532 * - in JBOD setup, wb_thresh can fluctuate a lot
1534 * go into state (wb_dirty >> wb_thresh) either because
1535 * wb_dirty starts high, or because wb_thresh drops low.
1538 * wb_thresh. Instead the auxiliary wb control line in
1542 dtc->wb_thresh = __wb_calc_thresh(dtc);
1544 div64_u64(dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0;
1556 if (dtc->wb_thresh < 2 * wb_stat_error()) {
1611 thresh = gdtc->wb_thresh;
1636 m_thresh = mdtc->wb_thresh;
1689 dirty_freerun_ceiling(gdtc->wb_thresh,
1698 dirty_exceeded = (gdtc->wb_dirty > gdtc->wb_thresh) &&
1716 dirty_freerun_ceiling(mdtc->wb_thresh,
1725 dirty_exceeded |= (mdtc->wb_dirty > mdtc->wb_thresh) &&
1773 sdtc->wb_thresh,
1802 sdtc->wb_thresh,