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: v2.6.24-rc1~607 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=db8906da596708865a2ead6a8c2af090255ca549;p=linux-2.6-omap-h63xx.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 f1decd21a53..049e7c0ac56 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; }