Re: [PATCH] mm: constify oom_control, scan_control, and alloc_context nodemask
From: Gregory Price
Date: Tue Jun 09 2026 - 11:53:29 EST
On Tue, Jun 09, 2026 at 08:41:59AM +0100, Lorenzo Stoakes wrote:
> On Mon, Jun 08, 2026 at 08:29:19PM -0400, Gregory Price wrote:
> > The nodemasks in these structures may come from a variety of sources,
> > including tasks and cpusets - and should never be modified by any code
> > when being passed around inside another context.
> >
> > Signed-off-by: Gregory Price <gourry@xxxxxxxxxx>
>
> Thanks for doing this, it's nice to gradually up our const correctness game
> (as much as C can ever be const correct :)
>
I've actually been carrying this patch locally for about a year in the
private nodes work. Sorry i didn't send it sooner. There is likely
more work to be done here.
> LGTM, builds locally too, so:
>
> Reviewed-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>
>