selinux: avoid unnecessary avc cache stat hit count
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2011 04:22:53 +0000 (21:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2011 04:22:53 +0000 (21:22 -0700)
commit257313b2a87795e07a0bdf58d0fffbdba8b31051
treeff5043526b0381cdc1f1f68d3c6f8ed3635e0ddb
parent044aea9b83614948c98564000db07d1d32b2d29b
selinux: avoid unnecessary avc cache stat hit count

There is no point in counting hits - we can calculate it from the number
of lookups and misses.

This makes the avc statistics a bit smaller, and makes the code
generation better too.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/selinux/avc.c
security/selinux/include/avc.h
security/selinux/selinuxfs.c