]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm, bpf: Use memcg in try_alloc_pages().
authorAlexei Starovoitov <ast@kernel.org>
Sat, 22 Feb 2025 02:44:26 +0000 (18:44 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 27 Feb 2025 17:39:44 +0000 (09:39 -0800)
commite8d78dbd0199a42f4e8599d768e77348f3e59741
treed327e1c08980c15121ebd9c8c8356adcd73b4777
parent01d37228d331047a0bbbd1026cec2ccabef6d88d
mm, bpf: Use memcg in try_alloc_pages().

Unconditionally use __GFP_ACCOUNT in try_alloc_pages().
The caller is responsible to setup memcg correctly.
All BPF memory accounting is memcg based.

Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20250222024427.30294-6-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
mm/page_alloc.c