[PATCH] sysctl: remove max_extfrag_threshold

Liu Shixin posted 1 patch 3 years, 7 months ago
kernel/sysctl.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
[PATCH] sysctl: remove max_extfrag_threshold
Posted by Liu Shixin 3 years, 7 months ago
Remove max_extfrag_threshold and replace by SYSCTL_ONE_THOUSAND.

No functional change.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
---
 kernel/sysctl.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index f10a610aa834..48dbe154d939 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 */
 
 /*
@@ -2224,7 +2219,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",
-- 
2.25.1
Re: [PATCH] sysctl: remove max_extfrag_threshold
Posted by Luis Chamberlain 3 years, 6 months ago
On Mon, Sep 05, 2022 at 08:47:24PM +0800, Liu Shixin wrote:
> Remove max_extfrag_threshold and replace by SYSCTL_ONE_THOUSAND.
> 
> No functional change.
> 
> Signed-off-by: Liu Shixin <liushixin2@huawei.com>

Thanks, queued up on sysctl-testing.

  Luis