diff options
author | tangmeng <tangmeng@uniontech.com> | 2022-02-18 18:59:23 +0800 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-04-06 13:43:44 -0700 |
commit | 801b501439d1b366d524dee4fc1e6b3473a95b9a (patch) | |
tree | a0e97b10a0b023d9e6e405c034c12d75f115ea75 /kernel/sysctl.c | |
parent | 9df918698408fd914493aba0b7858fef50eba63a (diff) |
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>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 90fc2212b536..5421e28dbb25 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -82,9 +82,6 @@ #ifdef CONFIG_SPARC #include <asm/setup.h> #endif -#ifdef CONFIG_BSD_PROCESS_ACCT -#include <linux/acct.h> -#endif #ifdef CONFIG_RT_MUTEXES #include <linux/rtmutex.h> #endif @@ -1856,15 +1853,6 @@ static struct ctl_table kern_table[] = { .proc_handler = proc_dostring, }, #endif -#ifdef CONFIG_BSD_PROCESS_ACCT - { - .procname = "acct", - .data = &acct_parm, - .maxlen = 3*sizeof(int), - .mode = 0644, - .proc_handler = proc_dointvec, - }, -#endif #ifdef CONFIG_MAGIC_SYSRQ { .procname = "sysrq", |