summaryrefslogtreecommitdiff
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorAnay Wadhera <awadhera@berkeley.edu>2021-05-20 22:00:28 -0700
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:49:51 +0300
commit4c60d1c4fe45588f4d15c3887b6c94993f7b4b9c (patch)
tree8afba0d7ca6d8465d33bf03f445c4e6ad389eff9 /include/linux/bpf.h
parentd692db0fad2ff92fec4e091181b994461fc9d4f1 (diff)
Revert "bpf: fix clearing on persistent program array maps"
This reverts commit c9da161c6517ba12154059d3b965c2cbaf16f90f. Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r--include/linux/bpf.h5
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;