diff options
Diffstat (limited to 'include/linux/bpf.h')
| -rw-r--r-- | include/linux/bpf.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 8eb8dfc66416..1dde66a4be98 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -40,7 +40,6 @@ struct bpf_map { struct user_struct *user; const struct bpf_map_ops *ops; struct work_struct work; - atomic_t usercnt; }; struct bpf_map_type_list { @@ -168,10 +167,8 @@ struct bpf_prog *bpf_prog_get(u32 ufd); void bpf_prog_put(struct bpf_prog *prog); void bpf_prog_put_rcu(struct bpf_prog *prog); -struct bpf_map *bpf_map_get_with_uref(u32 ufd); +struct bpf_map *bpf_map_get(u32 ufd); struct bpf_map *__bpf_map_get(struct fd f); -void bpf_map_inc(struct bpf_map *map, bool uref); -void bpf_map_put_with_uref(struct bpf_map *map); void bpf_map_put(struct bpf_map *map); extern int sysctl_unprivileged_bpf_disabled; |
