summaryrefslogtreecommitdiff
path: root/kernel/bpf/hashtab.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <martin.lau@kernel.org>2023-03-07 22:59:30 -0800
committerAlexei Starovoitov <ast@kernel.org>2023-03-10 11:05:29 -0800
commit7e30a8477b0bdd13dfd0b24e4f32b26d22b96e6c (patch)
tree1ba97166ccbcc9b294f4b53c810e8d54a519861b /kernel/bpf/hashtab.c
parent1288aaa2786b1e58c9e88e53f7654d520ebe0f3b (diff)
bpf: Add bpf_local_storage_free()
This patch refactors local_storage freeing logic into bpf_local_storage_free(). It is a preparation work for a later patch that uses bpf_mem_cache_alloc/free. The other kfree(local_storage) cases are also changed to bpf_local_storage_free(..., reuse_now = true). Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20230308065936.1550103-12-martin.lau@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/hashtab.c')
0 files changed, 0 insertions, 0 deletions