summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-07-28 03:13:57 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-28 03:13:57 -0700
commitcbb6e8ecaa8ec7e08ee2b0095236fabb87638742 (patch)
tree9ae8f7cb4bb69ad32e315d0908ac83d97e38ef11 /init
parent1a40868e97c4f45b6388593bef1c80b41e0c8845 (diff)
[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."
Diffstat (limited to 'init')
-rw-r--r--init/main.c4
1 files changed, 2 insertions, 2 deletions
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);