aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-24 06:08:07 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:08:41 -0400
commitf034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49 (patch)
treee166f1e87606f7e53a78cac543284c3484481727 /mm/page_alloc.c
parent8f126e37c0b250310a48a609bedf92a19a5559ec (diff)
[XFRM]: Dynamic xfrm_state hash table sizing.
The grow algorithm is simple, we grow if: 1) we see a hash chain collision at insert, and 2) we haven't hit the hash size limit (currently 1*1024*1024 slots), and 3) the number of xfrm_state objects is > the current hash mask All of this needs some tweaking. Remove __initdata from "hashdist" so we can use it safely at run time. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 54a4f5375bba..3b5358a0561f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2363,7 +2363,7 @@ int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write,
2363 return 0; 2363 return 0;
2364} 2364}
2365 2365
2366__initdata int hashdist = HASHDIST_DEFAULT; 2366int hashdist = HASHDIST_DEFAULT;
2367 2367
2368#ifdef CONFIG_NUMA 2368#ifdef CONFIG_NUMA
2369static int __init set_hashdist(char *str) 2369static int __init set_hashdist(char *str)