Thread (1 message) 1 message, 1 author, 2004-11-14
DORMANTno replies

[PATCH 7/8] Use SLAB_PANIC when creating critical slab cache

From: Chris Wright <hidden>
Date: 2004-11-14 20:24:49

Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <redacted>

===== net/ipv6/route.c 1.101 vs edited =====
--- 1.101/net/ipv6/route.c	2004-11-11 15:07:25 -08:00
+++ edited/net/ipv6/route.c	2004-11-14 11:56:41 -08:00
@@ -2069,12 +2069,9 @@ void __init ip6_route_init(void)
 	struct proc_dir_entry *p;
 
 	ip6_dst_ops.kmem_cachep = kmem_cache_create("ip6_dst_cache",
-						     sizeof(struct rt6_info),
-						     0, SLAB_HWCACHE_ALIGN,
-						     NULL, NULL);
-	if (!ip6_dst_ops.kmem_cachep)
-		panic("cannot create ip6_dst_cache");
-
+						  sizeof(struct rt6_info), 0,
+						  SLAB_HWCACHE_ALIGN|SLAB_PANIC,
+						  NULL, NULL);
 	fib6_init();
 #ifdef 	CONFIG_PROC_FS
 	p = proc_net_create("ipv6_route", 0, rt6_proc_info);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help