mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2024-12-28 06:54:55 +00:00
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>
This commit is contained in:
parent
1efd24fa05
commit
db8906da59
@ -203,8 +203,7 @@ int unshare_nsproxy_namespaces(unsigned long unshare_flags,
|
|||||||
|
|
||||||
static int __init nsproxy_cache_init(void)
|
static int __init nsproxy_cache_init(void)
|
||||||
{
|
{
|
||||||
nsproxy_cachep = kmem_cache_create("nsproxy", sizeof(struct nsproxy),
|
nsproxy_cachep = KMEM_CACHE(nsproxy, SLAB_PANIC);
|
||||||
0, SLAB_PANIC, NULL);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user