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

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

From: Chris Wright <hidden>
Date: 2004-11-14 20:23:18

Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <redacted>

===== net/ipv4/ipmr.c 1.45 vs edited =====
--- 1.45/net/ipv4/ipmr.c	2004-07-20 14:55:34 -07:00
+++ edited/net/ipv4/ipmr.c	2004-10-29 14:11:57 -07:00
@@ -1885,11 +1885,8 @@ void __init ip_mr_init(void)
 {
 	mrt_cachep = kmem_cache_create("ip_mrt_cache",
 				       sizeof(struct mfc_cache),
-				       0, SLAB_HWCACHE_ALIGN,
+				       0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
 				       NULL, NULL);
-	if (!mrt_cachep)
-		panic("cannot allocate ip_mrt_cache");
-
 	init_timer(&ipmr_expire_timer);
 	ipmr_expire_timer.function=ipmr_expire_process;
 	register_netdevice_notifier(&ip_mr_notifier);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help