Re: [PATCH 1/1] Smack: Create smack_rule cache to optimize memory usage

2019-04-09 Thread Casey Schaufler
On 3/14/2019 2:06 AM, Vishal Goel wrote: This patch allows for small memory optimization by creating the kmem cache for "struct smack_rule" instead of using kzalloc. For adding new smack rule, kzalloc is used to allocate the memory for "struct smack_rule". kzalloc will always allocate 32 or 64 by

Re: [PATCH 1/1] Smack: Create smack_rule cache to optimize memory usage

2019-03-14 Thread Casey Schaufler
On 3/14/2019 2:06 AM, Vishal Goel wrote: This patch allows for small memory optimization by creating the kmem cache for "struct smack_rule" instead of using kzalloc. For adding new smack rule, kzalloc is used to allocate the memory for "struct smack_rule". kzalloc will always allocate 32 or 64 by

[PATCH 1/1] Smack: Create smack_rule cache to optimize memory usage

2019-03-14 Thread Vishal Goel
This patch allows for small memory optimization by creating the kmem cache for "struct smack_rule" instead of using kzalloc. For adding new smack rule, kzalloc is used to allocate the memory for "struct smack_rule". kzalloc will always allocate 32 or 64 bytes for 1 structure depending upon the kzal