]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Always charge/uncharge memory when allocating/unlinking storage elements
authorAmery Hung <ameryhung@gmail.com>
Fri, 14 Nov 2025 20:13:23 +0000 (12:13 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Nov 2025 00:20:25 +0000 (16:20 -0800)
commit0e854e55356908386605714e66f98c3985d9e266
tree1e4b4c4232c637539c9b9cfc55d829dc869fcc38
parentec12ab2cda6607debde3f5cf6d425a1ec5fae1dd
bpf: Always charge/uncharge memory when allocating/unlinking storage elements

Since commit a96a44aba556 ("bpf: bpf_sk_storage: Fix invalid wait
context lockdep report"), {charge,uncharge}_mem are always true when
allocating a bpf_local_storage_elem or unlinking a bpf_local_storage_elem
from local storage, so drop these arguments. No functional change.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20251114201329.3275875-2-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf_local_storage.h
kernel/bpf/bpf_local_storage.c
net/core/bpf_sk_storage.c