Re: [PATCH] mm: constify oom_control, scan_control, and alloc_context nodemask

From: David Hildenbrand (Arm)

Date: Tue Jun 09 2026 - 05:53:34 EST


On 6/9/26 09:41, 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 :)

+1

>
> LGTM, builds locally too, so:
>

Nice.

> Reviewed-by: Lorenzo Stoakes <ljs@xxxxxxxxxx>

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David