]> git.hungrycats.org Git - linux/commitdiff
[PATCH] numa api core: use SLAB_PANIC
authorAndrew Morton <akpm@osdl.org>
Sat, 22 May 2004 15:04:06 +0000 (08:04 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 22 May 2004 15:04:06 +0000 (08:04 -0700)
mm/mempolicy.c

index 39bfe0d2ab49d31a7372871b1f903c4a3fdbe4c4..63b01f4b336805024e13c67e56500592d1293ec1 100644 (file)
@@ -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);