Lines Matching refs:highest_zoneidx
7218 static bool pgdat_watermark_boosted(pg_data_t *pgdat, int highest_zoneidx)
7230 for (i = highest_zoneidx; i >= 0; i--) {
7244 * and highest_zoneidx
7246 static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx)
7256 for (i = 0; i <= highest_zoneidx; i++) {
7266 if (zone_watermark_ok_safe(zone, order, mark, highest_zoneidx))
7271 * If a node has no managed zone within highest_zoneidx, it does not
7299 int highest_zoneidx)
7321 if (pgdat_balanced(pgdat, order, highest_zoneidx)) {
7378 update_reclaim_active(pg_data_t *pgdat, int highest_zoneidx, bool active)
7383 for (i = 0; i <= highest_zoneidx; i++) {
7397 set_reclaim_active(pg_data_t *pgdat, int highest_zoneidx)
7399 update_reclaim_active(pgdat, highest_zoneidx, true);
7403 clear_reclaim_active(pg_data_t *pgdat, int highest_zoneidx)
7405 update_reclaim_active(pgdat, highest_zoneidx, false);
7421 static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx)
7449 for (i = 0; i <= highest_zoneidx; i++) {
7460 set_reclaim_active(pgdat, highest_zoneidx);
7468 sc.reclaim_idx = highest_zoneidx;
7498 balanced = pgdat_balanced(pgdat, sc.order, highest_zoneidx);
7593 clear_reclaim_active(pgdat, highest_zoneidx);
7599 for (i = 0; i <= highest_zoneidx; i++) {
7614 wakeup_kcompactd(pgdat, pageblock_order, highest_zoneidx);
7647 unsigned int highest_zoneidx)
7664 if (prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) {
7677 wakeup_kcompactd(pgdat, alloc_order, highest_zoneidx);
7689 highest_zoneidx));
7704 prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) {
7746 unsigned int highest_zoneidx = MAX_NR_ZONES - 1;
7776 highest_zoneidx = kswapd_highest_zoneidx(pgdat,
7777 highest_zoneidx);
7781 highest_zoneidx);
7783 /* Read the new order and highest_zoneidx */
7785 highest_zoneidx = kswapd_highest_zoneidx(pgdat,
7786 highest_zoneidx);
7809 trace_mm_vmscan_kswapd_wake(pgdat->node_id, highest_zoneidx,
7815 highest_zoneidx);
7833 enum zone_type highest_zoneidx)
7847 if (curr_idx == MAX_NR_ZONES || curr_idx < highest_zoneidx)
7848 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, highest_zoneidx);
7858 (pgdat_balanced(pgdat, order, highest_zoneidx) &&
7859 !pgdat_watermark_boosted(pgdat, highest_zoneidx))) {
7868 wakeup_kcompactd(pgdat, order, highest_zoneidx);
7872 trace_mm_vmscan_wakeup_kswapd(pgdat->node_id, highest_zoneidx, order,