kernel/acct: move acct sysctls to its own file
authortangmeng <tangmeng@uniontech.com>
Fri, 18 Feb 2022 10:59:23 +0000 (18:59 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 18 Feb 2022 18:10:39 +0000 (10:10 -0800)
commitc7c1839c3c942779085a899d22627fad5b139b27
tree743cb93914fd01daca60cb36442dbdc50525a604
parentb5fefe080be0f66683d5c86e7f6a7f0ccaf83a52
kernel/acct: move acct 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 acct sysctl to its own file,
kernel/acct.c.

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