From: Paul Moore Date: Fri, 25 Apr 2008 19:03:34 +0000 (-0400) Subject: SELinux: Made netnode cache adds faster X-Git-Tag: v2.6.26-rc1~703^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a639e7ca8e8282b75be2724a28bfc788aa3bb156;p=pandora-kernel.git 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 Signed-off-by: James Morris --- Reading git-diff-tree failed