projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1bc51f
)
bpf: Remove unused member rcu from bpf_struct_ops_map
author
Xu Kuohai
<xukuohai@huawei.com>
Tue, 12 Nov 2024 14:58:47 +0000
(22:58 +0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Wed, 13 Nov 2024 01:13:46 +0000
(17:13 -0800)
The rcu member in bpf_struct_ops_map is not used after commit
b671c2067a04
("bpf: Retire the struct_ops map kvalue->refcnt.")
Remove it.
Suggested-by: Martin KaFai Lau <martin.lau@linux.dev>
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Link:
https://lore.kernel.org/r/20241112145849.3436772-2-xukuohai@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/bpf_struct_ops.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/bpf/bpf_struct_ops.c
b/kernel/bpf/bpf_struct_ops.c
index fda3dd2ee9844fec459c6dfa62d21c00da98a67c..40a93e6904737293f24377e9501bebf2e9afa2e3 100644
(file)
--- a/
kernel/bpf/bpf_struct_ops.c
+++ b/
kernel/bpf/bpf_struct_ops.c
@@
-23,7
+23,6
@@
struct bpf_struct_ops_value {
struct bpf_struct_ops_map {
struct bpf_map map;
- struct rcu_head rcu;
const struct bpf_struct_ops_desc *st_ops_desc;
/* protect map_update */
struct mutex lock;