From 4c60d1c4fe45588f4d15c3887b6c94993f7b4b9c Mon Sep 17 00:00:00 2001 From: Anay Wadhera Date: Thu, 20 May 2021 22:00:28 -0700 Subject: Revert "bpf: fix clearing on persistent program array maps" This reverts commit c9da161c6517ba12154059d3b965c2cbaf16f90f. Signed-off-by: Chatur27 --- include/linux/bpf.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include/linux/bpf.h') 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; -- cgit v1.2.3