linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch 22/57] numa api core: use SLAB_PANIC
@ 2004-05-22 22:06 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2004-05-22 22:06 UTC (permalink / raw)
  To: torvalds; +Cc: linux-mm, akpm



---

 25-akpm/mm/mempolicy.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff -puN mm/mempolicy.c~numa-api-core-slab-panic mm/mempolicy.c
--- 25/mm/mempolicy.c~numa-api-core-slab-panic	2004-05-22 14:56:24.948298808 -0700
+++ 25-akpm/mm/mempolicy.c	2004-05-22 14:59:40.410584024 -0700
@@ -1004,14 +1004,11 @@ static __init int numa_policy_init(void)
 {
 	policy_cache = kmem_cache_create("numa_policy",
 					 sizeof(struct mempolicy),
-					 0, 0, NULL, NULL);
+					 0, SLAB_PANIC, NULL, NULL);
 
 	sn_cache = kmem_cache_create("shared_policy_node",
 				     sizeof(struct sp_node),
-				     0, 0, NULL, NULL);
-
-	if (!policy_cache || !sn_cache)
-		panic("Cannot create NUMA policy cache");
+				     0, SLAB_PANIC, NULL, NULL);
 	return 0;
 }
 module_init(numa_policy_init);

_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-22 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-22 22:06 [patch 22/57] numa api core: use SLAB_PANIC akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox