commit | cb55f27ac9326bfe3bcaaf0adb498778d64602b6 | [log] [tgz] |
---|---|---|
author | Meng Tang <tangmeng@uniontech.com> | Mon Apr 11 13:12:05 2022 +0800 |
committer | Luis Chamberlain <mcgrof@kernel.org> | Thu Apr 21 11:40:59 2022 -0700 |
tree | b3530a9bf307f3768bccedbfc492ebff598ed4e9 | |
parent | 3c6a4cba3138d1aeeb8fd917178c6578b9b8ae29 [diff] |
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>