Commit db8906da596708865a2ead6a8c2af090255ca549

Authored by Pavel Emelyanov
Committed by Linus Torvalds
1 parent 1efd24fa05

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 <xemul@openvz.org>
Acked-by: Cedric Le Goater <clg@fr.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -203,8 +203,7 @@
203 203  
204 204 static int __init nsproxy_cache_init(void)
205 205 {
206   - nsproxy_cachep = kmem_cache_create("nsproxy", sizeof(struct nsproxy),
207   - 0, SLAB_PANIC, NULL);
  206 + nsproxy_cachep = KMEM_CACHE(nsproxy, SLAB_PANIC);
208 207 return 0;
209 208 }
210 209