]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm: vmstat: move sysctls to mm/vmstat.c
authorKaixiong Yu <yukaixiong@huawei.com>
Sat, 11 Jan 2025 07:07:36 +0000 (15:07 +0800)
committerJoel Granados <joel.granados@kernel.org>
Fri, 7 Feb 2025 15:53:03 +0000 (16:53 +0100)
commitb8974b89603c601f64b302d80129b0faf4879199
tree8c208426ad98cf1fad93346964e18a3dabaca8c6
parent7347586f007f7bc62bbbd1cba9d9351e4f79ebb0
mm: vmstat: move sysctls to mm/vmstat.c

This moves all vmstat related sysctls to its own file, removes useless
extern variable declarations, and do some related clean-ups. To avoid
compiler warnings when CONFIG_PROC_FS is not defined, add the macro
definition CONFIG_PROC_FS ahead CONFIG_NUMA in vmstat.c.

Signed-off-by: Kaixiong Yu <yukaixiong@huawei.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
include/linux/vmstat.h
kernel/sysctl.c
mm/vmstat.c