Lines Matching refs:wb_thresh
143 unsigned long wb_thresh; member
768 u64 wb_thresh; in __wb_calc_thresh() local
778 wb_thresh = (thresh * (100 - bdi_min_ratio)) / 100; in __wb_calc_thresh()
779 wb_thresh *= numerator; in __wb_calc_thresh()
780 do_div(wb_thresh, denominator); in __wb_calc_thresh()
784 wb_thresh += (thresh * wb_min_ratio) / 100; in __wb_calc_thresh()
785 if (wb_thresh > (thresh * wb_max_ratio) / 100) in __wb_calc_thresh()
786 wb_thresh = thresh * wb_max_ratio / 100; in __wb_calc_thresh()
788 return wb_thresh; in __wb_calc_thresh()
910 unsigned long wb_thresh = dtc->wb_thresh; in wb_position_ratio() local
965 if (dtc->wb_dirty >= wb_thresh) in wb_position_ratio()
968 wb_setpoint = dirty_freerun_ceiling(wb_thresh, in wb_position_ratio()
971 if (wb_setpoint == 0 || wb_setpoint == wb_thresh) in wb_position_ratio()
975 wb_thresh); in wb_position_ratio()
1033 if (unlikely(wb_thresh > dtc->thresh)) in wb_position_ratio()
1034 wb_thresh = dtc->thresh; in wb_position_ratio()
1042 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8); in wb_position_ratio()
1047 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1); in wb_position_ratio()
1057 span = (dtc->thresh - wb_thresh + 8 * write_bw) * (u64)x >> 16; in wb_position_ratio()
1071 x_intercept = wb_thresh / 2; in wb_position_ratio()
1308 setpoint = (dtc->wb_thresh + dtc->wb_bg_thresh) / 2; in wb_update_dirty_ratelimit()
1531 dtc->wb_thresh = __wb_calc_thresh(dtc); in wb_dirty_limits()
1533 div_u64((u64)dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0; in wb_dirty_limits()
1545 if (dtc->wb_thresh < 2 * wb_stat_error()) { in wb_dirty_limits()
1607 thresh = gdtc->wb_thresh; in balance_dirty_pages()
1632 m_thresh = mdtc->wb_thresh; in balance_dirty_pages()
1679 dirty_exceeded = (gdtc->wb_dirty > gdtc->wb_thresh) && in balance_dirty_pages()
1695 dirty_exceeded |= (mdtc->wb_dirty > mdtc->wb_thresh) && in balance_dirty_pages()
1743 sdtc->wb_thresh, in balance_dirty_pages()
1772 sdtc->wb_thresh, in balance_dirty_pages()