sysctl: Prefer ctl_table_header in proc_sysctl
authorJoel Granados <joel.granados@gmail.com>
Wed, 9 Aug 2023 10:49:53 +0000 (12:49 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 15 Aug 2023 22:26:17 +0000 (15:26 -0700)
commitcc9f7ee01e6724f2320df15a919138413ea1a374
treec1509361879dcfe4c4fe0bbcea0865b55f54b988
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
sysctl: Prefer ctl_table_header in proc_sysctl

This is a preparation commit that replaces ctl_table with
ctl_table_header as the pointer that is passed around in proc_sysctl.c.
This will become necessary in subsequent commits when the size of the
ctl_table array can no longer be calculated by searching for an empty
sentinel (last empty ctl_table element) but will be carried along inside
the ctl_table_header struct.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
fs/proc/proc_sysctl.c