summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2008-04-25 21:03:34 +0200
committerJames Morris <jmorris@namei.org>2008-04-28 01:36:23 +0200
commita639e7ca8e8282b75be2724a28bfc788aa3bb156 (patch)
tree1a3308a354874ce1bc6b3c9ec71427a5204da7b5 /net/can
parentSELinux: include/security.h whitespace, syntax, and other cleanups (diff)
downloadlinux-a639e7ca8e8282b75be2724a28bfc788aa3bb156.tar.xz
linux-a639e7ca8e8282b75be2724a28bfc788aa3bb156.zip
SELinux: Made netnode cache adds faster
When adding new entries to the network node cache we would walk the entire hash bucket to make sure we didn't cross a threshold (done to bound the cache size). This isn't a very quick or elegant solution for something which is supposed to be quick-ish so add a counter to each hash bucket to track the size of the bucket and eliminate the need to walk the entire bucket list on each add. Signed-off-by: Paul Moore <paul.moore@hp.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions