Lines Matching refs:highest_zoneidx

3743 static bool pgdat_watermark_boosted(pg_data_t *pgdat, int highest_zoneidx)  in pgdat_watermark_boosted()  argument
3755 for (i = highest_zoneidx; i >= 0; i--) { in pgdat_watermark_boosted()
3771 static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx) in pgdat_balanced() argument
3781 for (i = 0; i <= highest_zoneidx; i++) { in pgdat_balanced()
3788 if (zone_watermark_ok_safe(zone, order, mark, highest_zoneidx)) in pgdat_balanced()
3820 int highest_zoneidx) in prepare_kswapd_sleep() argument
3842 if (pgdat_balanced(pgdat, order, highest_zoneidx)) { in prepare_kswapd_sleep()
3895 update_reclaim_active(pg_data_t *pgdat, int highest_zoneidx, bool active) in update_reclaim_active() argument
3900 for (i = 0; i <= highest_zoneidx; i++) { in update_reclaim_active()
3914 set_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in set_reclaim_active() argument
3916 update_reclaim_active(pgdat, highest_zoneidx, true); in set_reclaim_active()
3920 clear_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in clear_reclaim_active() argument
3922 update_reclaim_active(pgdat, highest_zoneidx, false); in clear_reclaim_active()
3938 static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx) in balance_pgdat() argument
3966 for (i = 0; i <= highest_zoneidx; i++) { in balance_pgdat()
3977 set_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
3985 sc.reclaim_idx = highest_zoneidx; in balance_pgdat()
4015 balanced = pgdat_balanced(pgdat, sc.order, highest_zoneidx); in balance_pgdat()
4111 clear_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
4117 for (i = 0; i <= highest_zoneidx; i++) { in balance_pgdat()
4132 wakeup_kcompactd(pgdat, pageblock_order, highest_zoneidx); in balance_pgdat()
4165 unsigned int highest_zoneidx) in kswapd_try_to_sleep() argument
4182 if (prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
4195 wakeup_kcompactd(pgdat, alloc_order, highest_zoneidx); in kswapd_try_to_sleep()
4207 highest_zoneidx)); in kswapd_try_to_sleep()
4222 prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
4264 unsigned int highest_zoneidx = MAX_NR_ZONES - 1; in kswapd() local
4293 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
4294 highest_zoneidx); in kswapd()
4298 highest_zoneidx); in kswapd()
4302 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
4303 highest_zoneidx); in kswapd()
4326 trace_mm_vmscan_kswapd_wake(pgdat->node_id, highest_zoneidx, in kswapd()
4329 highest_zoneidx); in kswapd()
4347 enum zone_type highest_zoneidx) in wakeup_kswapd() argument
4361 if (curr_idx == MAX_NR_ZONES || curr_idx < highest_zoneidx) in wakeup_kswapd()
4362 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, highest_zoneidx); in wakeup_kswapd()
4372 (pgdat_balanced(pgdat, order, highest_zoneidx) && in wakeup_kswapd()
4373 !pgdat_watermark_boosted(pgdat, highest_zoneidx))) { in wakeup_kswapd()
4382 wakeup_kcompactd(pgdat, order, highest_zoneidx); in wakeup_kswapd()
4386 trace_mm_vmscan_wakeup_kswapd(pgdat->node_id, highest_zoneidx, order, in wakeup_kswapd()