Skip to content
Commit cb55f27a authored by Meng Tang's avatar Meng Tang Committed by Luis Chamberlain
Browse files

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: default avatarDavidlohr <Bueso&lt;dave@stgolabs.net>
Signed-off-by: default avatarMeng Tang <tangmeng@uniontech.com>
[updated the sysctl_check_table() hunk due to some changes upstream]
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 3c6a4cba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment