bpf: Factor out a common helper free_all()
authorHou Tao <houtao1@huawei.com>
Tue, 6 Jun 2023 03:53:08 +0000 (11:53 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 6 Jun 2023 20:40:07 +0000 (13:40 -0700)
commitaa7881fcfe9d328484265d589bc2785533e33c4d
treec70262f64c4805beae493e01bd7ad8e111c264fe
parent095641817e1bf6aa2560e025e47575188ee3edaf
bpf: Factor out a common helper free_all()

Factor out a common helper free_all() to free all normal elements or
per-cpu elements on a lock-less list.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20230606035310.4026145-2-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/memalloc.c