diff options
author | Kyeongdon Kim <kyeongdon.kim@lge.com> | 2017-09-06 18:50:19 +0900 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-09-20 12:01:58 -0400 |
commit | 7c620ece125cbab7b5dfcb574ee1e64ab8b562cd (patch) | |
tree | 53535c964faebf8e3ced3151353c8577213a59cc /security/selinux/include/netlabel.h | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) | |
download | linux-next-7c620ece125cbab7b5dfcb574ee1e64ab8b562cd.tar.gz |
selinux: Use kmem_cache for hashtab_node
During random test as own device to check slub account,
we found some slack memory from hashtab_node(kmalloc-64).
By using kzalloc(), middle of test result like below:
allocated size 240768
request size 45144
slack size 195624
allocation count 3762
So, we want to use kmem_cache_zalloc() and that
can reduce memory size 52byte(slack size/alloc count) per each struct.
Signed-off-by: Kyeongdon Kim <kyeongdon.kim@lge.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/netlabel.h')
0 files changed, 0 insertions, 0 deletions