Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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: default avatarPavel Emelyanov <xemul@openvz.org>
Acked-by: default avatarCedric Le Goater <clg@fr.ibm.com>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1efd24fa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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),
					   0, SLAB_PANIC, NULL);
	nsproxy_cachep = KMEM_CACHE(nsproxy, SLAB_PANIC);
	return 0;
}