Lines Matching refs:wb_thresh
904 u64 wb_thresh; in __wb_calc_thresh() local
915 wb_thresh = (thresh * (100 * BDI_RATIO_SCALE - bdi_min_ratio)) / (100 * BDI_RATIO_SCALE); in __wb_calc_thresh()
916 wb_thresh *= numerator; in __wb_calc_thresh()
917 wb_thresh = div64_ul(wb_thresh, denominator); in __wb_calc_thresh()
921 wb_thresh += (thresh * wb_min_ratio) / (100 * BDI_RATIO_SCALE); in __wb_calc_thresh()
932 wb_thresh = max(wb_thresh, (thresh - dtc->dirty) / 100); in __wb_calc_thresh()
934 wb_thresh = max(wb_thresh, (thresh - dtc->dirty) / 8); in __wb_calc_thresh()
938 if (wb_thresh > wb_max_thresh) in __wb_calc_thresh()
939 wb_thresh = wb_max_thresh; in __wb_calc_thresh()
941 return wb_thresh; in __wb_calc_thresh()
1076 unsigned long wb_thresh = dtc->wb_thresh; in wb_position_ratio() local
1125 if (dtc->wb_dirty >= wb_thresh) in wb_position_ratio()
1128 wb_setpoint = dirty_freerun_ceiling(wb_thresh, in wb_position_ratio()
1131 if (wb_setpoint == 0 || wb_setpoint == wb_thresh) in wb_position_ratio()
1135 wb_thresh); in wb_position_ratio()
1193 if (unlikely(wb_thresh > dtc->thresh)) in wb_position_ratio()
1194 wb_thresh = dtc->thresh; in wb_position_ratio()
1199 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1); in wb_position_ratio()
1209 span = (dtc->thresh - wb_thresh + 8 * write_bw) * (u64)x >> 16; in wb_position_ratio()
1223 x_intercept = wb_thresh / 2; in wb_position_ratio()
1453 setpoint = (dtc->wb_thresh + dtc->wb_bg_thresh) / 2; in wb_update_dirty_ratelimit()
1687 dtc->wb_thresh = __wb_calc_thresh(dtc, dtc->thresh); in wb_dirty_limits()
1689 div_u64((u64)dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0; in wb_dirty_limits()
1701 if (dtc->wb_thresh < 2 * wb_stat_error()) { in wb_dirty_limits()
1717 thresh = dtc->wb_thresh; in domain_poll_intv()
1743 thresh = dtc->wb_thresh; in domain_dirty_freerun()
1779 dirty_freerun_ceiling(dtc->wb_thresh, dtc->wb_bg_thresh); in wb_dirty_freerun()
1785 dtc->dirty_exceeded = (dtc->wb_dirty > dtc->wb_thresh) && in wb_dirty_exceeded()