proc_sysctl: move helper which creates required subdirectories
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 2 Mar 2023 20:28:17 +0000 (12:28 -0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 18:49:00 +0000 (11:49 -0700)
commitb2f56e5574eac0cf9e3dc382bef010298cb1f1e9
tree04a0ad02cdc883e80769bf76e106b8658f98da0e
parent67ff32289acad9ed338cd9f2351b44939e55163e
proc_sysctl: move helper which creates required subdirectories

Move the code which creates the subdirectories for a ctl table
into a helper routine so to make it easier to review. Document
the goal.

This creates no functional changes.

Reviewed-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
fs/proc/proc_sysctl.c