]> Gentwo Git Trees - linux/.git/commit
mm: Allow GFP_ACCOUNT to be used in alloc_pages_nolock().
authorAlexei Starovoitov <ast@kernel.org>
Tue, 9 Sep 2025 01:00:03 +0000 (18:00 -0700)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:42:35 +0000 (09:42 +0200)
commit99253de51f80acccc528a9c94e2f4d5f329071f1
tree07135904fa92ea4546be9c39893d22cc333e3526
parent4957089a23f41f31f8e7e22802a8ef9f5789c191
mm: Allow GFP_ACCOUNT to be used in alloc_pages_nolock().

Change alloc_pages_nolock() to default to __GFP_COMP when allocating
pages, since upcoming reentrant alloc_slab_page() needs __GFP_COMP.
Also allow __GFP_ACCOUNT flag to be specified,
since most of BPF infra needs __GFP_ACCOUNT except BPF streams.

Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/gfp.h
kernel/bpf/stream.c
kernel/bpf/syscall.c
mm/page_alloc.c