Skip to content
Commit 158e5e9e authored by Tobias Klauser's avatar Tobias Klauser Committed by Alexei Starovoitov
Browse files

bpf: Drop always true do_idr_lock parameter to bpf_map_free_id



The do_idr_lock parameter to bpf_map_free_id was introduced by commit
bd5f5f4e ("bpf: Add BPF_MAP_GET_FD_BY_ID"). However, all callers set
do_idr_lock = true since commit 1e0bd5a0 ("bpf: Switch bpf_map ref
counter to atomic64_t so bpf_map_inc() never fails").

While at it also inline __bpf_map_put into its only caller bpf_map_put
now that do_idr_lock can be dropped from its signature.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Link: https://lore.kernel.org/r/20230202141921.4424-1-tklauser@distanz.ch


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent d9e44c32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment