mm: move page-writeback sysctls to their own file
authorzhanglianjie <zhanglianjie@uniontech.com>
Fri, 18 Feb 2022 02:51:51 +0000 (18:51 -0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 18 Feb 2022 18:10:38 +0000 (10:10 -0800)
commitf4eba4a4c1889e507fc8c25d97e7647cd126b37f
tree1e4c193cb23c8d39b450ae107d0c47d0cb36a2cc
parent57ab7a2dea6b92202e9b20bf1705827f6b86db1b
mm: move page-writeback sysctls to their 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.

So move the page-writeback sysctls to its own file.

[akpm@linux-foundation.org: coding-style cleanups]

akpm@linux-foundation.org: fix CONFIG_SYSCTL=n warnings]
Link: https://lkml.kernel.org/r/20220129012955.26594-1-zhanglianjie@uniontech.com
Signed-off-by: zhanglianjie <zhanglianjie@uniontech.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Iurii Zaikin <yzaikin@google.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/writeback.h
kernel/sysctl.c
mm/page-writeback.c