From cbb6e8ecaa8ec7e08ee2b0095236fabb87638742 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 28 Jul 2002 03:13:57 -0700 Subject: [PATCH] use a slab cache for pte_chains Patch from Bill Irwin. It removes the custom pte_chain allocator in mm/rmap.c and replaces it with a slab cache. "This patch (1) eliminates the pte_chain_freelist_lock and all contention on it (2) gives the VM the ability to recover unused pte_chain pages Anton Blanchard has reported (1) from prior incarnations of this patch. Craig Kulesa has reported (2) in combination with slab-on-LRU patches. I've left OOM detection out of this patch entirely as upcoming patches will do real OOM handling for pte_chains and all the code changed anyway." --- init/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init') diff --git a/init/main.c b/init/main.c index 32cad19bf432..292cd0cb2b3d 100644 --- a/init/main.c +++ b/init/main.c @@ -70,7 +70,7 @@ extern void sbus_init(void); extern void sysctl_init(void); extern void signals_init(void); extern void buffer_init(void); - +extern void pte_chain_init(void); extern void radix_tree_init(void); extern void free_initmem(void); @@ -432,7 +432,7 @@ asmlinkage void __init start_kernel(void) mem_init(); kmem_cache_sizes_init(); pgtable_cache_init(); - + pte_chain_init(); mempages = num_physpages; fork_init(mempages); -- cgit v1.2.3