Re: [PATCH v4 15/18] mm: replace __GFP_NO_CODETAG with ALLOC_NO_CODETAG

From: Vlastimil Babka (SUSE)

Date: Fri Jul 03 2026 - 05:26:14 EST


On 7/2/26 11:49, Brendan Jackman wrote:
> Now that alloc_pages has an entrypoint that allows passing alloc_flags,
> we can take advantage of this to start removing GFP flags that are only
> used for mm-internal stuff.
>
> This requires also plumbing the alloc_flags into some more of the
> allocator code, in particular __alloc_pages[_noprof]() gets an
> alloc_flags arg to go along with its callees, and we now need to pass
> those flags deeper into the allocator so they can reach the alloc_tag
> code.
>
> While moving the flag definition into page_alloc.h, also update the
> comment per Hao's suggestion.
>
> No functional change intended.
>
> Link: https://lore.kernel.org/all/b4916118-3537-4e19-8bc8-1d103dd0d225@xxxxxxxxx/
> Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>

Reviewed-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>