diff options
| author | Kaixiong Yu <yukaixiong@huawei.com> | 2025-01-11 15:07:39 +0800 |
|---|---|---|
| committer | Joel Granados <joel.granados@kernel.org> | 2025-02-07 16:53:04 +0100 |
| commit | 538d5baacd8a01b814777af1c9f1f9740a714707 (patch) | |
| tree | 8c18a59df5846cbbc0494429471507d67fd8364b /kernel/sysctl.c | |
| parent | mm: swap: move sysctl to mm/swap.c (diff) | |
| download | linux-538d5baacd8a01b814777af1c9f1f9740a714707.tar.gz linux-538d5baacd8a01b814777af1c9f1f9740a714707.zip | |
mm: vmscan: move vmscan sysctls to mm/vmscan.c
This moves vm_swappiness and zone_reclaim_mode to mm/vmscan.c,
as part of the kernel/sysctl.c cleaning, also moves some external
variable declarations and function declarations from include/linux/swap.h
into mm/internal.h.
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>
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index b14e8764d45b..c1434adb8d50 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2052,15 +2052,6 @@ static const struct ctl_table vm_table[] = { .extra1 = SYSCTL_ZERO, }, { - .procname = "swappiness", - .data = &vm_swappiness, - .maxlen = sizeof(vm_swappiness), - .mode = 0644, - .proc_handler = proc_dointvec_minmax, - .extra1 = SYSCTL_ZERO, - .extra2 = SYSCTL_TWO_HUNDRED, - }, - { .procname = "drop_caches", .data = &sysctl_drop_caches, .maxlen = sizeof(int), @@ -2107,16 +2098,6 @@ static const struct ctl_table vm_table[] = { .extra1 = SYSCTL_ZERO, }, #endif -#ifdef CONFIG_NUMA - { - .procname = "zone_reclaim_mode", - .data = &node_reclaim_mode, - .maxlen = sizeof(node_reclaim_mode), - .mode = 0644, - .proc_handler = proc_dointvec_minmax, - .extra1 = SYSCTL_ZERO, - }, -#endif #ifdef CONFIG_MMU { .procname = "mmap_min_addr", |
