Lines Matching refs:highest_zoneidx
6631 static bool pgdat_watermark_boosted(pg_data_t *pgdat, int highest_zoneidx) in pgdat_watermark_boosted() argument
6643 for (i = highest_zoneidx; i >= 0; i--) { in pgdat_watermark_boosted()
6659 static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx) in pgdat_balanced() argument
6669 for (i = 0; i <= highest_zoneidx; i++) { in pgdat_balanced()
6679 if (zone_watermark_ok_safe(zone, order, mark, highest_zoneidx)) in pgdat_balanced()
6712 int highest_zoneidx) in prepare_kswapd_sleep() argument
6734 if (pgdat_balanced(pgdat, order, highest_zoneidx)) { in prepare_kswapd_sleep()
6789 update_reclaim_active(pg_data_t *pgdat, int highest_zoneidx, bool active) in update_reclaim_active() argument
6794 for (i = 0; i <= highest_zoneidx; i++) { in update_reclaim_active()
6808 set_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in set_reclaim_active() argument
6810 update_reclaim_active(pgdat, highest_zoneidx, true); in set_reclaim_active()
6814 clear_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in clear_reclaim_active() argument
6816 update_reclaim_active(pgdat, highest_zoneidx, false); in clear_reclaim_active()
6832 static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx) in balance_pgdat() argument
6860 for (i = 0; i <= highest_zoneidx; i++) { in balance_pgdat()
6871 set_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
6880 sc.reclaim_idx = highest_zoneidx; in balance_pgdat()
6910 balanced = pgdat_balanced(pgdat, sc.order, highest_zoneidx); in balance_pgdat()
7015 clear_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
7021 for (i = 0; i <= highest_zoneidx; i++) { in balance_pgdat()
7036 wakeup_kcompactd(pgdat, pageblock_order, highest_zoneidx); in balance_pgdat()
7069 unsigned int highest_zoneidx) in kswapd_try_to_sleep() argument
7086 if (prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
7099 wakeup_kcompactd(pgdat, alloc_order, highest_zoneidx); in kswapd_try_to_sleep()
7111 highest_zoneidx)); in kswapd_try_to_sleep()
7126 prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
7168 unsigned int highest_zoneidx = MAX_NR_ZONES - 1; in kswapd() local
7198 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
7199 highest_zoneidx); in kswapd()
7203 highest_zoneidx); in kswapd()
7207 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
7208 highest_zoneidx); in kswapd()
7230 trace_mm_vmscan_kswapd_wake(pgdat->node_id, highest_zoneidx, in kswapd()
7233 highest_zoneidx); in kswapd()
7251 enum zone_type highest_zoneidx) in wakeup_kswapd() argument
7265 if (curr_idx == MAX_NR_ZONES || curr_idx < highest_zoneidx) in wakeup_kswapd()
7266 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, highest_zoneidx); in wakeup_kswapd()
7276 (pgdat_balanced(pgdat, order, highest_zoneidx) && in wakeup_kswapd()
7277 !pgdat_watermark_boosted(pgdat, highest_zoneidx))) { in wakeup_kswapd()
7286 wakeup_kcompactd(pgdat, order, highest_zoneidx); in wakeup_kswapd()
7290 trace_mm_vmscan_wakeup_kswapd(pgdat->node_id, highest_zoneidx, order, in wakeup_kswapd()