linux/kernel/bpf
Martin KaFai Lau 2ffcb6fc50 bpf: Refactor codes into bpf_local_storage_destroy
This patch first renames bpf_local_storage_unlink_nolock to
bpf_local_storage_destroy(). It better reflects that it is only
used when the storage's owner (sk/task/cgrp/inode) is being kfree().

All bpf_local_storage_destroy's caller is taking the spin lock and
then free the storage. This patch also moves these two steps into
the bpf_local_storage_destroy.

This is a preparation work for a later patch that uses
bpf_mem_cache_alloc/free in the bpf_local_storage.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20230308065936.1550103-3-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-03-10 11:05:28 -08:00
..
preload
arraymap.c bpf: arraymap memory usage 2023-03-07 09:33:42 -08:00
bloom_filter.c bpf: bloom_filter memory usage 2023-03-07 09:33:42 -08:00
bpf_cgrp_storage.c bpf: Refactor codes into bpf_local_storage_destroy 2023-03-10 11:05:28 -08:00
bpf_inode_storage.c bpf: Refactor codes into bpf_local_storage_destroy 2023-03-10 11:05:28 -08:00
bpf_iter.c bpf: implement numbers iterator 2023-03-08 16:19:51 -08:00
bpf_local_storage.c bpf: Refactor codes into bpf_local_storage_destroy 2023-03-10 11:05:28 -08:00
bpf_lru_list.c
bpf_lru_list.h
bpf_lsm.c
bpf_struct_ops.c bpf: bpf_struct_ops memory usage 2023-03-07 09:33:43 -08:00
bpf_struct_ops_types.h
bpf_task_storage.c bpf: Refactor codes into bpf_local_storage_destroy 2023-03-10 11:05:28 -08:00
btf.c bpf: add iterator kfuncs registration and validation logic 2023-03-08 16:19:50 -08:00
cgroup.c bpf: allow ctx writes using BPF_ST_MEM instruction 2023-03-03 21:41:46 -08:00
cgroup_iter.c
core.c
cpumap.c bpf: cpumap memory usage 2023-03-07 09:33:42 -08:00
cpumask.c bpf: Refactor RCU enforcement in the verifier. 2023-03-03 17:42:20 +01:00
devmap.c bpf: devmap memory usage 2023-03-07 09:33:42 -08:00
disasm.c
disasm.h
dispatcher.c
hashtab.c bpf: hashtab memory usage 2023-03-07 09:33:42 -08:00
helpers.c bpf: implement numbers iterator 2023-03-08 16:19:51 -08:00
inode.c
Kconfig
link_iter.c
local_storage.c bpf: local_storage memory usage 2023-03-07 09:33:43 -08:00
lpm_trie.c bpf: lpm_trie memory usage 2023-03-07 09:33:42 -08:00
Makefile
map_in_map.c
map_in_map.h
map_iter.c
memalloc.c
mmap_unlock_work.h
net_namespace.c
offload.c bpf: offload map memory usage 2023-03-07 09:33:43 -08:00
percpu_freelist.c
percpu_freelist.h
prog_iter.c
queue_stack_maps.c bpf: queue_stack_maps memory usage 2023-03-07 09:33:42 -08:00
reuseport_array.c bpf: reuseport_array memory usage 2023-03-07 09:33:42 -08:00
ringbuf.c bpf: ringbuf memory usage 2023-03-07 09:33:42 -08:00
stackmap.c bpf: stackmap memory usage 2023-03-07 09:33:42 -08:00
syscall.c bpf: enforce all maps having memory usage callback 2023-03-07 09:33:43 -08:00
sysfs_btf.c
task_iter.c
tnum.c
trampoline.c
verifier.c bpf: take into account liveness when propagating precision 2023-03-10 10:11:42 -08:00