Lines Matching refs:pos_ratio
141 unsigned long pos_ratio; member
913 long long pos_ratio; in pos_ratio_polynom() local
918 pos_ratio = x; in pos_ratio_polynom()
919 pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT; in pos_ratio_polynom()
920 pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT; in pos_ratio_polynom()
921 pos_ratio += 1 << RATELIMIT_CALC_SHIFT; in pos_ratio_polynom()
923 return clamp(pos_ratio, 0LL, 2LL << RATELIMIT_CALC_SHIFT); in pos_ratio_polynom()
1012 long long pos_ratio; /* for scaling up/down the rate limit */ in wb_position_ratio() local
1015 dtc->pos_ratio = 0; in wb_position_ratio()
1026 pos_ratio = pos_ratio_polynom(setpoint, dtc->dirty, limit); in wb_position_ratio()
1057 dtc->pos_ratio = min_t(long long, pos_ratio * 2, in wb_position_ratio()
1095 dtc->pos_ratio = min(pos_ratio, wb_pos_ratio); in wb_position_ratio()
1158 pos_ratio = div64_u64(pos_ratio * (x_intercept - dtc->wb_dirty), in wb_position_ratio()
1161 pos_ratio /= 4; in wb_position_ratio()
1171 pos_ratio = div_u64(pos_ratio * x_intercept, in wb_position_ratio()
1174 pos_ratio *= 8; in wb_position_ratio()
1177 dtc->pos_ratio = pos_ratio; in wb_position_ratio()
1312 dtc->pos_ratio >> RATELIMIT_CALC_SHIFT; in wb_update_dirty_ratelimit()
1841 if (mdtc->pos_ratio < gdtc->pos_ratio) in balance_dirty_pages()
1854 task_ratelimit = ((u64)dirty_ratelimit * sdtc->pos_ratio) >> in balance_dirty_pages()