Commit eb2de31
bpf: consistently use bpf_rcu_lock_held() everywhere
We have many places which open-code what's now is bpf_rcu_lock_held()
macro, so replace all those places with a clean and short macro invocation.
For that, move bpf_rcu_lock_held() macro into include/linux/bpf.h.
Signed-off-by: Andrii Nakryiko <[email protected]>1 parent c9241b4 commit eb2de31
File tree
4 files changed
+14
-25
lines changed- include/linux
- kernel/bpf
4 files changed
+14
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2417 | 2417 | | |
2418 | 2418 | | |
2419 | 2419 | | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
2420 | 2423 | | |
2421 | 2424 | | |
2422 | 2425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
673 | | - | |
| 672 | + | |
674 | 673 | | |
675 | 674 | | |
676 | 675 | | |
| |||
1098 | 1097 | | |
1099 | 1098 | | |
1100 | 1099 | | |
1101 | | - | |
1102 | | - | |
| 1100 | + | |
1103 | 1101 | | |
1104 | 1102 | | |
1105 | 1103 | | |
| |||
1206 | 1204 | | |
1207 | 1205 | | |
1208 | 1206 | | |
1209 | | - | |
1210 | | - | |
| 1207 | + | |
1211 | 1208 | | |
1212 | 1209 | | |
1213 | 1210 | | |
| |||
1275 | 1272 | | |
1276 | 1273 | | |
1277 | 1274 | | |
1278 | | - | |
1279 | | - | |
| 1275 | + | |
1280 | 1276 | | |
1281 | 1277 | | |
1282 | 1278 | | |
| |||
1338 | 1334 | | |
1339 | 1335 | | |
1340 | 1336 | | |
1341 | | - | |
1342 | | - | |
| 1337 | + | |
1343 | 1338 | | |
1344 | 1339 | | |
1345 | 1340 | | |
| |||
1416 | 1411 | | |
1417 | 1412 | | |
1418 | 1413 | | |
1419 | | - | |
1420 | | - | |
| 1414 | + | |
1421 | 1415 | | |
1422 | 1416 | | |
1423 | 1417 | | |
| |||
1452 | 1446 | | |
1453 | 1447 | | |
1454 | 1448 | | |
1455 | | - | |
1456 | | - | |
| 1449 | + | |
1457 | 1450 | | |
1458 | 1451 | | |
1459 | 1452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
| 61 | + | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
80 | | - | |
81 | | - | |
| 78 | + | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
| |||
134 | 131 | | |
135 | 132 | | |
136 | 133 | | |
137 | | - | |
138 | | - | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
0 commit comments