Fix the comment to comply with the code. Link: https://lkml.kernel.org/r/20200831031104.23322-7-richard.weiyang@linux.alibaba.com
Unified · Split
| @@ -217,11 +217,11 @@ extern struct ftrace_ops __rcu *ftrace_ops_list; · 216 unmodified lines | ||
| 217 | 217 | extern struct ftrace_ops ftrace_list_end; |
| 218 | 218 | |
| 219 | 219 | /* |
| 220 | − * Traverse the ftrace_global_list, invoking all entries. The reason that we | |
| 220 | + * Traverse the ftrace_ops_list, invoking all entries. The reason that we | |
| 221 | 221 | * can use rcu_dereference_raw_check() is that elements removed from this list |
| 222 | 222 | * are simply leaked, so there is no need to interact with a grace-period |
| 223 | 223 | * mechanism. The rcu_dereference_raw_check() calls are needed to handle |
| 224 | − * concurrent insertions into the ftrace_global_list. | |
| 224 | + * concurrent insertions into the ftrace_ops_list. | |
| 225 | 225 | * |
| 226 | 226 | * Silly Alpha and silly pointer-speculation compiler optimizations! |
| 227 | 227 | */ |