Re: [PATCH 2/3] mm/page_alloc: move the kswapd node skip check into a helper

From: Gregory Price (Meta)

Date: Mon Nov 16 2026 - 18:37:01 EST


On 2026-11-13 15:52 -0800, Joshua Hahn wrote:
> get_page_from_freelist() checks many conditions for each zone, often
> with a big comment block explaining the conditions.
>
> Move the kswapd check and its comment into should_skip_kswapd_zone() to
> make the zone iteration cleaner to read.
>
> While moving this, also resolve a checkpatch warning which complains of
> a waitqueue_active() call with no corresponding comment explaining why
> the lockless use is OK in this case.
>
> No functional change intended.
>
> Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>

Nice

Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>

--
~Gregory