From 89ea8fc44d2e07f9611c65a1181cec2bb80d29c2 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 1 Dec 2012 15:44:12 +0100 Subject: kern/slab: remove the KMEM_CACHE_NORECLAIM flag Don't encourage anyone to use non reclaimable pools of resources, it's a Bad Thing To Do. --- vm/vm_map.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm') diff --git a/vm/vm_map.c b/vm/vm_map.c index 5099283..0c888b6 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -182,10 +182,12 @@ void vm_map_init(void) NULL, NULL, NULL, 0); kmem_cache_init(&vm_map_entry_cache, "vm_map_entry", sizeof(struct vm_map_entry), 0, NULL, NULL, NULL, 0); +#if 0 kmem_cache_init(&vm_map_kentry_cache, "vm_map_kentry", sizeof(struct vm_map_entry), 0, NULL, kentry_pagealloc, NULL, KMEM_CACHE_NOCPUPOOL | KMEM_CACHE_NOOFFSLAB | KMEM_CACHE_NORECLAIM); +#endif kmem_cache_init(&vm_map_copy_cache, "vm_map_copy", sizeof(struct vm_map_copy), 0, NULL, NULL, NULL, 0); -- cgit v1.2.3