Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7c620ece authored by Kyeongdon Kim's avatar Kyeongdon Kim Committed by Paul Moore
Browse files

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: default avatarKyeongdon Kim <kyeongdon.kim@lge.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 2bd6bf03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment