kernel/lockdep: move lockdep sysctls to its own file
authortangmeng <tangmeng@uniontech.com>
Fri, 18 Feb 2022 10:58:57 +0000 (18:58 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 18 Feb 2022 18:10:39 +0000 (10:10 -0800)
commit3831fb33e3f35bae5cd5c9abf590c011d3b0ba15
treefeb08fef106166238761c260018da5b6d8212083
parentf4eba4a4c1889e507fc8c25d97e7647cd126b37f
kernel/lockdep: move lockdep 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 prove_locking and lock_stat sysctls
to its own file, kernel/lockdep.c.

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