Lines Matching refs:x
308 unsigned long x = 0; in highmem_dirtyable_memory() local
328 x += nr_pages; in highmem_dirtyable_memory()
341 if ((long)x < 0) in highmem_dirtyable_memory()
342 x = 0; in highmem_dirtyable_memory()
350 return min(x, total); in highmem_dirtyable_memory()
364 unsigned long x; in global_dirtyable_memory() local
366 x = global_zone_page_state(NR_FREE_PAGES); in global_dirtyable_memory()
372 x -= min(x, totalreserve_pages); in global_dirtyable_memory()
374 x += global_node_page_state(NR_INACTIVE_FILE); in global_dirtyable_memory()
375 x += global_node_page_state(NR_ACTIVE_FILE); in global_dirtyable_memory()
378 x -= highmem_dirtyable_memory(x); in global_dirtyable_memory()
380 return x + 1; /* Ensure that we never return 0 */ in global_dirtyable_memory()
817 long x; in pos_ratio_polynom() local
819 x = div64_s64(((s64)setpoint - (s64)dirty) << RATELIMIT_CALC_SHIFT, in pos_ratio_polynom()
821 pos_ratio = x; in pos_ratio_polynom()
822 pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT; in pos_ratio_polynom()
823 pos_ratio = pos_ratio * x >> RATELIMIT_CALC_SHIFT; in pos_ratio_polynom()
916 long x; in wb_position_ratio() local
1047 x = div_u64((u64)wb_thresh << 16, dtc->thresh | 1); in wb_position_ratio()
1048 wb_setpoint = setpoint * (u64)x >> 16; in wb_position_ratio()
1057 span = (dtc->thresh - wb_thresh + 8 * write_bw) * (u64)x >> 16; in wb_position_ratio()
1202 unsigned long x; in wb_update_dirty_ratelimit() local
1312 x = min3(wb->balanced_dirty_ratelimit, in wb_update_dirty_ratelimit()
1314 if (dirty_ratelimit < x) in wb_update_dirty_ratelimit()
1315 step = x - dirty_ratelimit; in wb_update_dirty_ratelimit()
1317 x = max3(wb->balanced_dirty_ratelimit, in wb_update_dirty_ratelimit()
1319 if (dirty_ratelimit > x) in wb_update_dirty_ratelimit()
1320 step = dirty_ratelimit - x; in wb_update_dirty_ratelimit()