Commit 0aa6e336 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] numa api core: use SLAB_PANIC

parent e6ac361f
...@@ -1004,14 +1004,11 @@ static __init int numa_policy_init(void) ...@@ -1004,14 +1004,11 @@ static __init int numa_policy_init(void)
{ {
policy_cache = kmem_cache_create("numa_policy", policy_cache = kmem_cache_create("numa_policy",
sizeof(struct mempolicy), sizeof(struct mempolicy),
0, 0, NULL, NULL); 0, SLAB_PANIC, NULL, NULL);
sn_cache = kmem_cache_create("shared_policy_node", sn_cache = kmem_cache_create("shared_policy_node",
sizeof(struct sp_node), sizeof(struct sp_node),
0, 0, NULL, NULL); 0, SLAB_PANIC, NULL, NULL);
if (!policy_cache || !sn_cache)
panic("Cannot create NUMA policy cache");
return 0; return 0;
} }
module_init(numa_policy_init); module_init(numa_policy_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment