summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorLiu Shixin <liushixin2@huawei.com>2022-09-05 20:47:24 +0800
committerLuis Chamberlain <mcgrof@kernel.org>2022-09-08 16:55:34 -0700
commitfeb2bd010aec77a1cf981d2649183c64cd4870a0 (patch)
treea1f2c316044e96a1620c100a1333c6700eb43d54 /kernel/sysctl.c
parent8ebc4123c1445ef11a9989d9bc676691a1d43302 (diff)
downloadlwn-feb2bd010aec77a1cf981d2649183c64cd4870a0.tar.gz
lwn-feb2bd010aec77a1cf981d2649183c64cd4870a0.zip
sysctl: remove max_extfrag_threshold
Remove max_extfrag_threshold and replace by SYSCTL_ONE_THOUSAND. No functional change. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 324e6bbbeb34..368909f86469 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -129,11 +129,6 @@ static enum sysctl_writes_mode sysctl_writes_strict = SYSCTL_WRITES_STRICT;
int sysctl_legacy_va_layout;
#endif
-#ifdef CONFIG_COMPACTION
-/* min_extfrag_threshold is SYSCTL_ZERO */;
-static const int max_extfrag_threshold = 1000;
-#endif
-
#endif /* CONFIG_SYSCTL */
/*
@@ -2216,7 +2211,7 @@ static struct ctl_table vm_table[] = {
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.extra1 = SYSCTL_ZERO,
- .extra2 = (void *)&max_extfrag_threshold,
+ .extra2 = SYSCTL_ONE_THOUSAND,
},
{
.procname = "compact_unevictable_allowed",