linux/security
Linus Torvalds cdb0f9a1ad selinux: inline avc_audit() and avc_has_perm_noaudit() into caller
Now that all the slow-path code is gone from these functions, we can
inline them into the main caller - avc_has_perm_flags().

Now the compiler can see that 'avc' is allocated on the stack for this
case, which helps register pressure a bit.  It also actually shrinks the
total stack frame, because the stack frame that avc_has_perm_flags()
always needed (for that 'avc' allocation) is now sufficient for the
inlined functions too.

Inlining isn't bad - but mindless inlining of cold code (see the
previous commit) is.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-03-31 11:24:22 -07:00
..
2012-02-14 10:45:42 +11:00
2012-02-16 10:25:18 +11:00
2012-02-14 10:45:42 +11:00
2012-01-10 10:20:35 -05:00
2012-02-10 09:18:52 +11:00
2012-03-20 21:29:41 -04:00
2012-02-10 09:18:52 +11:00
2012-02-14 10:45:42 +11:00