Re: [PATCH 3/3] mm/vmscan: consolidate promo vs. high watermark checks

From: Gregory Price (Meta)

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


On 2026-11-13 15:52 -0800, Joshua Hahn wrote:
> There are three sites which all check the watermark that kswapd reclaims
> zones up to, which is the promo watermark when NUMA balancing memory
> tiering is enabled, and the high watermark otherwise.
>
> Consolidate the patern into a helper function. While at it, remove the
> include for <linux/sched/sysctl.h> in mm/page_alloc.c now that the
> dependency on sysctl_numa_balancing_mode has been abstracted into
> vmscan code.
>
> No functional changes intended.
>
> Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>

Nice.

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

--
~Gregory