From: Pavel Emelyanov The blessed way for standard caches is to use it. Besides, this may give this cache a better alignment. Signed-off-by: Pavel Emelyanov Acked-by: Cedric Le Goater Acked-by: Serge Hallyn Signed-off-by: Andrew Morton --- kernel/nsproxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN kernel/nsproxy.c~use-kmem_cache-macro-to-create-the-nsproxy-cache kernel/nsproxy.c --- a/kernel/nsproxy.c~use-kmem_cache-macro-to-create-the-nsproxy-cache +++ a/kernel/nsproxy.c @@ -192,8 +192,7 @@ int unshare_nsproxy_namespaces(unsigned 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; } _