Re: [PATCH] mm/vmscan: reclaim every zone in per-node proactive reclaim

From: Gregory Price

Date: Mon Oct 19 2026 - 23:07:17 EST


On Tue, Oct 20, 2026 at 12:49:37PM +1100, Balbir Singh wrote:
> > diff --git a/mm/vmscan.c b/mm/vmscan.c
> > index e82ba737c028d..90f7a7bf4e426 100644
> > --- a/mm/vmscan.c
> > +++ b/mm/vmscan.c
> > @@ -8180,7 +8180,7 @@ int user_proactive_reclaim(char *buf,
> > } else {
> > struct scan_control sc = {
> > .gfp_mask = current_gfp_context(gfp_mask),
> > - .reclaim_idx = gfp_zone(gfp_mask),
> > + .reclaim_idx = MAX_NR_ZONES - 1,
> > .proactive_swappiness = swappiness == -1 ? NULL : &swappiness,
> > .priority = DEF_PRIORITY,
> > .may_writepage = 1,
>
>
> I just noticed some other issues with this code, in terms of honouring
> zone_reclaim_node (not related to this patch). I'll send out fixes, for
> this patch.

I'm shocked, I tell you, shocked!

These are all things I accidentally ran into by just uh... using the
interface. I'm absolutely positive these interfaces are full of bugs.

~Gregory