Lines Matching refs:refcnt
132 int refcnt; member
169 cgroup_lsm_atype[i].refcnt++; in bpf_cgroup_atype_get()
177 if (--cgroup_lsm_atype[i].refcnt <= 0) in bpf_cgroup_atype_put()
179 WARN_ON_ONCE(cgroup_lsm_atype[i].refcnt < 0); in bpf_cgroup_atype_put()
195 percpu_ref_kill(&cgrp->bpf.refcnt); in cgroup_bpf_offline()
323 percpu_ref_exit(&cgrp->bpf.refcnt); in cgroup_bpf_release()
334 struct cgroup *cgrp = container_of(ref, struct cgroup, bpf.refcnt); in cgroup_bpf_release_fn()
471 ret = percpu_ref_init(&cgrp->bpf.refcnt, cgroup_bpf_release_fn, 0, in cgroup_bpf_inherit()
499 percpu_ref_exit(&cgrp->bpf.refcnt); in cgroup_bpf_inherit()
514 if (percpu_ref_is_zero(&desc->bpf.refcnt)) in update_effective_progs()
526 if (percpu_ref_is_zero(&desc->bpf.refcnt)) { in update_effective_progs()
756 if (percpu_ref_is_zero(&desc->bpf.refcnt)) in replace_effective_prog()
907 if (percpu_ref_is_zero(&desc->bpf.refcnt)) in purge_effective_progs()