bpf: Factor out inc/dec of active flag into helpers.
authorAlexei Starovoitov <ast@kernel.org>
Thu, 6 Jul 2023 03:34:38 +0000 (20:34 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 Jul 2023 21:45:22 +0000 (23:45 +0200)
commit18e027b1c7c6dd858b36305468251a5e4a6bcdf7
treea7de6822cd5f49b57d42ae11b2c9c76ac5992393
parent05ae68656a8e9d9386ce4243fe992122fd29bb51
bpf: Factor out inc/dec of active flag into helpers.

Factor out local_inc/dec_return(&c->active) into helpers.
No functional changes.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/bpf/20230706033447.54696-6-alexei.starovoitov@gmail.com
kernel/bpf/memalloc.c