Skip to contentSkip to conversation

numa api core: use SLAB_PANIC

PATCH In review [email protected] 1 participant 1 message May 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 22/57 numa api core: use SLAB_PANIC

---

 25-akpm/mm/mempolicy.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
mm/mempolicy.c renamed from mm/mempolicy.c~numa-api-core-slab-panic +2 -5
diff -puN mm/mempolicy.c~numa-api-core-slab-panic mm/mempolicy.c
@@ -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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>