From db8906da596708865a2ead6a8c2af090255ca549 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 16 Oct 2007 23:30:11 -0700 Subject: 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 --- kernel/nsproxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- cgit v1.2.3-18-g5258