Lines Matching refs:highest_zoneidx
7192 static bool pgdat_watermark_boosted(pg_data_t *pgdat, int highest_zoneidx) in pgdat_watermark_boosted() argument
7204 for (i = highest_zoneidx; i >= 0; i--) { in pgdat_watermark_boosted()
7220 static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx) in pgdat_balanced() argument
7230 for (i = 0; i <= highest_zoneidx; i++) { in pgdat_balanced()
7240 if (zone_watermark_ok_safe(zone, order, mark, highest_zoneidx)) in pgdat_balanced()
7273 int highest_zoneidx) in prepare_kswapd_sleep() argument
7295 if (pgdat_balanced(pgdat, order, highest_zoneidx)) { in prepare_kswapd_sleep()
7348 update_reclaim_active(pg_data_t *pgdat, int highest_zoneidx, bool active) in update_reclaim_active() argument
7353 for (i = 0; i <= highest_zoneidx; i++) { in update_reclaim_active()
7367 set_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in set_reclaim_active() argument
7369 update_reclaim_active(pgdat, highest_zoneidx, true); in set_reclaim_active()
7373 clear_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in clear_reclaim_active() argument
7375 update_reclaim_active(pgdat, highest_zoneidx, false); in clear_reclaim_active()
7391 static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx) in balance_pgdat() argument
7419 for (i = 0; i <= highest_zoneidx; i++) { in balance_pgdat()
7430 set_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
7438 sc.reclaim_idx = highest_zoneidx; in balance_pgdat()
7468 balanced = pgdat_balanced(pgdat, sc.order, highest_zoneidx); in balance_pgdat()
7563 clear_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
7569 for (i = 0; i <= highest_zoneidx; i++) { in balance_pgdat()
7584 wakeup_kcompactd(pgdat, pageblock_order, highest_zoneidx); in balance_pgdat()
7617 unsigned int highest_zoneidx) in kswapd_try_to_sleep() argument
7634 if (prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
7647 wakeup_kcompactd(pgdat, alloc_order, highest_zoneidx); in kswapd_try_to_sleep()
7659 highest_zoneidx)); in kswapd_try_to_sleep()
7674 prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
7716 unsigned int highest_zoneidx = MAX_NR_ZONES - 1; in kswapd() local
7746 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
7747 highest_zoneidx); in kswapd()
7751 highest_zoneidx); in kswapd()
7755 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
7756 highest_zoneidx); in kswapd()
7779 trace_mm_vmscan_kswapd_wake(pgdat->node_id, highest_zoneidx, in kswapd()
7782 highest_zoneidx); in kswapd()
7800 enum zone_type highest_zoneidx) in wakeup_kswapd() argument
7814 if (curr_idx == MAX_NR_ZONES || curr_idx < highest_zoneidx) in wakeup_kswapd()
7815 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, highest_zoneidx); in wakeup_kswapd()
7825 (pgdat_balanced(pgdat, order, highest_zoneidx) && in wakeup_kswapd()
7826 !pgdat_watermark_boosted(pgdat, highest_zoneidx))) { in wakeup_kswapd()
7835 wakeup_kcompactd(pgdat, order, highest_zoneidx); in wakeup_kswapd()
7839 trace_mm_vmscan_wakeup_kswapd(pgdat->node_id, highest_zoneidx, order, in wakeup_kswapd()