]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
libbpf: Use map_is_created helper in map setters
authorMykyta Yatsenko <yatsenko@meta.com>
Mon, 3 Mar 2025 13:57:49 +0000 (13:57 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:48:27 +0000 (11:48 -0700)
commit6ef78c41911d34f02e26529a3ce3183589db4b82
tree538b58e95ab1366e02d448fcf9a0bc762b9995b0
parent19856a524729435dac4fa93421b2f0920c89a4b2
libbpf: Use map_is_created helper in map setters

Refactoring: use map_is_created helper in map setters that need to check
the state of the map. This helps to reduce the number of the places that
depend explicitly on the loaded flag, simplifying refactoring in the
next patch of this set.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250303135752.158343-2-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c