Skip to content

Commit

Permalink
sysctl: remove max_extfrag_threshold
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liu Shixin authored and Luis Chamberlain committed Sep 8, 2022
1 parent 8ebc412 commit feb2bd0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/*
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit feb2bd0

Please sign in to comment.