Commit 6ef78c4
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>1 parent 19856a5 commit 6ef78c4
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4845 | 4845 | | |
4846 | 4846 | | |
4847 | 4847 | | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
4848 | 4853 | | |
4849 | 4854 | | |
4850 | 4855 | | |
4851 | 4856 | | |
4852 | 4857 | | |
4853 | 4858 | | |
4854 | 4859 | | |
4855 | | - | |
| 4860 | + | |
4856 | 4861 | | |
4857 | 4862 | | |
4858 | 4863 | | |
| |||
4946 | 4951 | | |
4947 | 4952 | | |
4948 | 4953 | | |
4949 | | - | |
| 4954 | + | |
4950 | 4955 | | |
4951 | 4956 | | |
4952 | 4957 | | |
| |||
5191 | 5196 | | |
5192 | 5197 | | |
5193 | 5198 | | |
5194 | | - | |
5195 | | - | |
5196 | | - | |
5197 | | - | |
5198 | | - | |
5199 | 5199 | | |
5200 | 5200 | | |
5201 | 5201 | | |
| |||
10299 | 10299 | | |
10300 | 10300 | | |
10301 | 10301 | | |
10302 | | - | |
| 10302 | + | |
10303 | 10303 | | |
10304 | 10304 | | |
10305 | 10305 | | |
| |||
10345 | 10345 | | |
10346 | 10346 | | |
10347 | 10347 | | |
10348 | | - | |
| 10348 | + | |
10349 | 10349 | | |
10350 | 10350 | | |
10351 | 10351 | | |
| |||
0 commit comments