aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/syscall.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-08-06 03:02:33 -0400
committerDavid S. Miller <davem@davemloft.net>2015-08-10 01:50:05 -0400
commit2a36f0b92eb638dd023870574eb471b1c56be9ad (patch)
tree74d714e1fc1e2daa98d61fdf948d9b7fae0e4378 /kernel/bpf/syscall.c
parentffe8690c85b8426db7783064724d106702f1b1e8 (diff)
bpf: Make the bpf_prog_array_map more generic
All the map backends are of generic nature. In order to avoid adding much special code into the eBPF core, rewrite part of the bpf_prog_array map code and make it more generic. So the new perf_event_array map type can reuse most of code with bpf_prog_array map and add fewer lines of special code. Signed-off-by: Wang Nan <wangnan0@huawei.com> Signed-off-by: Kaixu Xia <xiakaixu@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r--kernel/bpf/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
index a1b14d197a4f..dc9b464fefa9 100644
--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -72,7 +72,7 @@ static int bpf_map_release(struct inode *inode, struct file *filp)
72 /* prog_array stores refcnt-ed bpf_prog pointers 72 /* prog_array stores refcnt-ed bpf_prog pointers
73 * release them all when user space closes prog_array_fd 73 * release them all when user space closes prog_array_fd
74 */ 74 */
75 bpf_prog_array_map_clear(map); 75 bpf_fd_array_map_clear(map);
76 76
77 bpf_map_put(map); 77 bpf_map_put(map);
78 return 0; 78 return 0;