Files
twx-linux/kernel
Hou Tao 0f24e540e7 bpf: Only allocate one bpf_mem_cache for bpf_cpumask_ma
[ Upstream commit 5d5de3a431 ]

The size of bpf_cpumask is fixed, so there is no need to allocate many
bpf_mem_caches for bpf_cpumask_ma, just one bpf_mem_cache is enough.
Also add comments for bpf_mem_alloc_init() in bpf_mem_alloc.h to prevent
future miuse.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230216024821.2202916-1-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Stable-dep-of: 77473d1a96 ("bpf: Free struct bpf_cpumask in call_rcu handler")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:17:12 +09:00
..
2022-12-02 11:25:00 +01:00
2022-12-21 14:31:52 -08:00
2023-04-12 16:46:30 +02:00
2022-11-15 00:42:02 -08:00
2023-02-02 16:26:06 -08:00
2022-12-27 12:52:10 +01:00
2023-02-21 13:34:07 -08:00