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

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

From: Chris Wright <hidden>
Date: 2004-11-14 20:21:47

Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <redacted>

===== net/decnet/dn_route.c 1.29 vs edited =====
--- 1.29/net/decnet/dn_route.c	2004-11-09 16:44:25 -08:00
+++ edited/net/decnet/dn_route.c	2004-11-10 17:48:58 -08:00
@@ -1778,12 +1778,9 @@ void __init dn_route_init(void)
 	int i, goal, order;
 
 	dn_dst_ops.kmem_cachep = kmem_cache_create("dn_dst_cache",
-						   sizeof(struct dn_route),
-						   0, SLAB_HWCACHE_ALIGN,
-						   NULL, NULL);
-
-	if (!dn_dst_ops.kmem_cachep)
-		panic("DECnet: Failed to allocate dn_dst_cache\n");
+						  sizeof(struct dn_route), 0,
+						  SLAB_HWCACHE_ALIGN|SLAB_PANIC,
+						  NULL, NULL);
 
 	init_timer(&dn_route_timer);
 	dn_route_timer.function = dn_dst_check_expire;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help