From: Eric Paris Date: Thu, 12 Feb 2009 19:50:43 +0000 (-0500) Subject: SELinux: remove the unused ae.used X-Git-Tag: v2.6.30-rc1~679^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=906d27d9d28fd50fb40026e56842d8f6806a7a04;p=pandora-kernel.git SELinux: remove the unused ae.used Currently SELinux code has an atomic which was intended to track how many times an avc entry was used and to evict entries when they haven't been used recently. Instead we never let this atomic get above 1 and evict when it is first checked for eviction since it hits zero. This is a total waste of time so I'm completely dropping ae.used. This change resulted in about a 3% faster avc_has_perm_noaudit when running oprofile against a tbench benchmark. Signed-off-by: Eric Paris Reviewed by: Paul Moore Acked-by: Stephen Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed