Skip to content

Commit feb2bd0

Browse files
Liu Shixinmcgrof
authored andcommitted
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>
1 parent 8ebc412 commit feb2bd0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernel/sysctl.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ static enum sysctl_writes_mode sysctl_writes_strict = SYSCTL_WRITES_STRICT;
129129
int sysctl_legacy_va_layout;
130130
#endif
131131

132-
#ifdef CONFIG_COMPACTION
133-
/* min_extfrag_threshold is SYSCTL_ZERO */;
134-
static const int max_extfrag_threshold = 1000;
135-
#endif
136-
137132
#endif /* CONFIG_SYSCTL */
138133

139134
/*
@@ -2216,7 +2211,7 @@ static struct ctl_table vm_table[] = {
22162211
.mode = 0644,
22172212
.proc_handler = proc_dointvec_minmax,
22182213
.extra1 = SYSCTL_ZERO,
2219-
.extra2 = (void *)&max_extfrag_threshold,
2214+
.extra2 = SYSCTL_ONE_THOUSAND,
22202215
},
22212216
{
22222217
.procname = "compact_unevictable_allowed",

0 commit comments

Comments
 (0)