diff options
author | Meng Tang <tangmeng@uniontech.com> | 2022-04-11 13:12:05 +0800 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-04-21 11:40:59 -0700 |
commit | cb55f27ac9326bfe3bcaaf0adb498778d64602b6 (patch) | |
tree | b3530a9bf307f3768bccedbfc492ebff598ed4e9 /kernel/trace/ftrace.c | |
parent | 3c6a4cba3138d1aeeb8fd917178c6578b9b8ae29 (diff) | |
download | lwn-cb55f27ac9326bfe3bcaaf0adb498778d64602b6.tar.gz lwn-cb55f27ac9326bfe3bcaaf0adb498778d64602b6.zip |
fs/proc: Introduce list_for_each_table_entry for proc sysctl
Use the list_for_each_table_entry macro to optimize the scenario
of traverse ctl_table. This make the code neater and easier to
understand.
Suggested-by: Davidlohr Bueso<dave@stgolabs.net>
Signed-off-by: Meng Tang <tangmeng@uniontech.com>
[updated the sysctl_check_table() hunk due to some changes upstream]
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/trace/ftrace.c')
0 files changed, 0 insertions, 0 deletions