selinux: use kmem_cache for ebitmap
authorJunil Lee <junil0814.lee@lge.com>
Thu, 8 Jun 2017 04:18:09 +0000 (13:18 +0900)
committerPaul Moore <paul@paul-moore.com>
Fri, 9 Jun 2017 20:13:50 +0000 (16:13 -0400)
commitb4958c892e02241b9bd121f3397b76225ff6f4a3
treee471fff24bbfa77f27596102f1be03c9dde77988
parent8e71bf75efceff07e04e1f8a4b7c0dbff7205949
selinux: use kmem_cache for ebitmap

The allocated size for each ebitmap_node is 192byte by kzalloc().
Then, ebitmap_node size is fixed, so it's possible to use only 144byte
for each object by kmem_cache_zalloc().
It can reduce some dynamic allocation size.

Signed-off-by: Junil Lee <junil0814.lee@lge.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/ebitmap.c
security/selinux/ss/ebitmap.h
security/selinux/ss/services.c