Lines Matching refs:wb_thresh
142 unsigned long wb_thresh; member
727 u64 wb_thresh; in __wb_calc_thresh() local
737 wb_thresh = (thresh * (100 - bdi_min_ratio)) / 100; in __wb_calc_thresh()
738 wb_thresh *= numerator; in __wb_calc_thresh()
739 do_div(wb_thresh, denominator); in __wb_calc_thresh()
743 wb_thresh += (thresh * wb_min_ratio) / 100; in __wb_calc_thresh()
744 if (wb_thresh > (thresh * wb_max_ratio) / 100) in __wb_calc_thresh()
745 wb_thresh = thresh * wb_max_ratio / 100; in __wb_calc_thresh()
747 return wb_thresh; in __wb_calc_thresh()
869 unsigned long wb_thresh = dtc->wb_thresh; in wb_position_ratio() local
924 if (dtc->wb_dirty >= wb_thresh) in wb_position_ratio()
927 wb_setpoint = dirty_freerun_ceiling(wb_thresh, in wb_position_ratio()
930 if (wb_setpoint == 0 || wb_setpoint == wb_thresh) in wb_position_ratio()
934 wb_thresh); in wb_position_ratio()
992 if (unlikely(wb_thresh > dtc->thresh)) in wb_position_ratio()
993 wb_thresh = dtc->thresh; in wb_position_ratio()
1001 wb_thresh = max(wb_thresh, (limit - dtc->dirty) / 8); in wb_position_ratio()
1006 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1); in wb_position_ratio()
1016 span = (dtc->thresh - wb_thresh + 8 * write_bw) * (u64)x >> 16; in wb_position_ratio()
1030 x_intercept = wb_thresh / 2; in wb_position_ratio()
1266 setpoint = (dtc->wb_thresh + dtc->wb_bg_thresh) / 2; in wb_update_dirty_ratelimit()
1489 dtc->wb_thresh = __wb_calc_thresh(dtc); in wb_dirty_limits()
1491 div_u64((u64)dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0; in wb_dirty_limits()
1503 if (dtc->wb_thresh < 2 * wb_stat_error(wb)) { in wb_dirty_limits()
1566 thresh = gdtc->wb_thresh; in balance_dirty_pages()
1591 m_thresh = mdtc->wb_thresh; in balance_dirty_pages()
1636 dirty_exceeded = (gdtc->wb_dirty > gdtc->wb_thresh) && in balance_dirty_pages()
1652 dirty_exceeded |= (mdtc->wb_dirty > mdtc->wb_thresh) && in balance_dirty_pages()
1700 sdtc->wb_thresh, in balance_dirty_pages()
1729 sdtc->wb_thresh, in balance_dirty_pages()