From: Pavel Emelyanov Date: Wed, 17 Oct 2007 06:30:11 +0000 (-0700) Subject: Use KMEM_CACHE macro to create the nsproxy cache X-Git-Tag: accepted/tizen/common/20141203.182822~27058 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db8906da596708865a2ead6a8c2af090255ca549;p=platform%2Fkernel%2Flinux-arm64.git 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: Pavel Emelyanov Acked-by: Cedric Le Goater Acked-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index f1decd2..049e7c0 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c @@ -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; }