summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 22:56:59 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 22:56:59 -0700
commitaf70f7673155616ffd004d551e1b612002a58bf0 (patch)
treefab54aaed9271a33433062bb9295be7fe1fa9ed4 /kernel
parent7860b37198b0650f51bfafebac820386b552a071 (diff)
[PATCH] Fix page allocator lower zone protection for NUMA
From: Martin Hicks <mort@wildopensource.com> This changes __alloc_pages() so it uses precalculated values for the "min". This should prevent the problem of min incrementing from zone to zone across many nodes on a NUMA machine. The result of falling back to other nodes with the old incremental min calculations was that the min value became very large.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index f5f3123b0522..f2c8c8ce4926 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -722,7 +722,7 @@ static ctl_table vm_table[] = {
.data = &sysctl_lower_zone_protection,
.maxlen = sizeof(sysctl_lower_zone_protection),
.mode = 0644,
- .proc_handler = &proc_dointvec_minmax,
+ .proc_handler = &lower_zone_protection_sysctl_handler,
.strategy = &sysctl_intvec,
.extra1 = &zero,
},