diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-10-17 02:30:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:59 -0400 |
commit | db8906da596708865a2ead6a8c2af090255ca549 (patch) | |
tree | f8882fd724c7972b0042b7fc6dcb9831c5cc2e3d | |
parent | 1efd24fa05976ea20582c18dd4b80d7311b9b94a (diff) |
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>
-rw-r--r-- | kernel/nsproxy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index f1decd21a534..049e7c0ac566 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c | |||
@@ -203,8 +203,7 @@ int unshare_nsproxy_namespaces(unsigned long unshare_flags, | |||
203 | 203 | ||
204 | static int __init nsproxy_cache_init(void) | 204 | static int __init nsproxy_cache_init(void) |
205 | { | 205 | { |
206 | nsproxy_cachep = kmem_cache_create("nsproxy", sizeof(struct nsproxy), | 206 | nsproxy_cachep = KMEM_CACHE(nsproxy, SLAB_PANIC); |
207 | 0, SLAB_PANIC, NULL); | ||
208 | return 0; | 207 | return 0; |
209 | } | 208 | } |
210 | 209 | ||