kernel/do_mount_initrd: move real_root_dev sysctls to its own file
authortangmeng <tangmeng@uniontech.com>
Fri, 18 Feb 2022 10:59:49 +0000 (18:59 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 18 Feb 2022 18:10:39 +0000 (10:10 -0800)
commitfc12aa67daba87a5ac43a9d3ae80be2e666e2ef9
tree532b368ab96b3942a0fbd0ad868caa979920222d
parent97d4da3bab169b5388dc15bd8388bb787988dd98
kernel/do_mount_initrd: move real_root_dev sysctls to its own file

kernel/sysctl.c is a kitchen sink where everyone leaves their dirty
dishes, this makes it very difficult to maintain.

To help with this maintenance let's start by moving sysctls to places
where they actually belong.  The proc sysctl maintainers do not want to
know what sysctl knobs you wish to add for your own piece of code, we
just care about the core logic.

All filesystem syctls now get reviewed by fs folks. This commit
follows the commit of fs, move the real_root_dev sysctl to its own file,
kernel/do_mount_initrd.c.

Signed-off-by: tangmeng <tangmeng@uniontech.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/initrd.h
init/do_mounts_initrd.c
kernel/sysctl.c