bpf: Use try_alloc_pages() to allocate pages for bpf needs.
authorAlexei Starovoitov <ast@kernel.org>
Sat, 22 Feb 2025 02:44:27 +0000 (18:44 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 27 Feb 2025 17:39:44 +0000 (09:39 -0800)
commitc9eb8102e21e8c4c6fb74d1921d99e4d43713520
treee236a453607f51e48c9c3910f57fae94fb5bbe15
parente8d78dbd0199a42f4e8599d768e77348f3e59741
bpf: Use try_alloc_pages() to allocate pages for bpf needs.

Use try_alloc_pages() and free_pages_nolock() for BPF needs
when context doesn't allow using normal alloc_pages.
This is a prerequisite for further work.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20250222024427.30294-7-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/arena.c
kernel/bpf/syscall.c