[RFCv2] security: smack: add a hash table to quicken smk_find_entry()

From: Tomasz Stanislawski
Date: Tue Jun 11 2013 - 08:59:19 EST


Hi everyone,
I have updated the patch after Casey's review.
The fixes from the recent version are:
- update naming according to Casey's guidelines
- fix coding style issues
- use hlist interface instead of double-linked list to reduce memory
usage and to speed-up initialization
- drop Dan Bernstein hash function in favor of more standard full_name_hash
- adjust the number of hash slots basing on measurements

Regards,
Tomasz Stanislawski

Tomasz Stanislawski (1):
security: smack: add a hash table to quicken smk_find_entry()

security/smack/smack.h | 5 +++++
security/smack/smack_access.c | 30 +++++++++++++++++++++++++++---
security/smack/smack_lsm.c | 12 ++++++------
3 files changed, 38 insertions(+), 9 deletions(-)

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/