]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Convert bpf_selem_link_map to failable
authorAmery Hung <ameryhung@gmail.com>
Thu, 5 Feb 2026 22:29:01 +0000 (14:29 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 6 Feb 2026 22:28:55 +0000 (14:28 -0800)
commitfd103ffc57c9a3b8b76bc852ffae5eb630a6ded4
tree859736ed9030d321d5513b1b1ceb5f1069629d3f
parent1b7e0cae85accc9e728004511193e995cd040300
bpf: Convert bpf_selem_link_map to failable

To prepare for changing bpf_local_storage_map_bucket::lock to rqspinlock,
convert bpf_selem_link_map() to failable. It still always succeeds and
returns 0 until the change happens. No functional change.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260205222916.1788211-4-ameryhung@gmail.com
include/linux/bpf_local_storage.h
kernel/bpf/bpf_local_storage.c
net/core/bpf_sk_storage.c