Commit db8906da authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Linus Torvalds

Use KMEM_CACHE macro to create the nsproxy cache

The blessed way for standard caches is to use it.  Besides, this may give
this cache a better alignment.
Signed-off-by: 's avatarPavel Emelyanov <>
Acked-by: 's avatarCedric Le Goater <>
Acked-by: 's avatarSerge Hallyn <>
Signed-off-by: 's avatarAndrew Morton <>
Signed-off-by: 's avatarLinus Torvalds <>
parent 1efd24fa
......@@ -203,8 +203,7 @@ int unshare_nsproxy_namespaces(unsigned long unshare_flags,
static int __init nsproxy_cache_init(void)
nsproxy_cachep = kmem_cache_create("nsproxy", sizeof(struct nsproxy),
nsproxy_cachep = KMEM_CACHE(nsproxy, SLAB_PANIC);
return 0;
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