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

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

From: Chris Wright <hidden>
Date: 2004-11-14 20:22:38

Use SLAB_PANIC when creating a critical slab cache.

Signed-off-by: Chris Wright <redacted>

===== net/ipv4/inetpeer.c 1.9 vs edited =====
--- 1.9/net/ipv4/inetpeer.c	2004-02-23 15:09:14 -08:00
+++ edited/net/ipv4/inetpeer.c	2004-10-29 14:17:33 -07:00
@@ -126,11 +126,8 @@ void __init inet_initpeers(void)
 
 	peer_cachep = kmem_cache_create("inet_peer_cache",
 			sizeof(struct inet_peer),
-			0, SLAB_HWCACHE_ALIGN,
+			0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
 			NULL, NULL);
-
-	if (!peer_cachep)
-		panic("cannot create inet_peer_cache");
 
 	/* All the timers, started at system startup tend
 	   to synchronize. Perturb it a bit.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help