aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2012-03-31 18:12:57 +0000
committerLinus Torvalds <[email protected]>2012-03-31 18:24:22 +0000
commitcdb0f9a1ad2ee3c11e21bc99f0c2021a02844666 (patch)
treee4c2ea0b8c432645d1a28bdb694939b1e2891b30 /fs/jbd2/commit.c
parentselinux: don't inline slow-path code into avc_has_perm_noaudit() (diff)
downloadkernel-cdb0f9a1ad2ee3c11e21bc99f0c2021a02844666.tar.gz
kernel-cdb0f9a1ad2ee3c11e21bc99f0c2021a02844666.zip
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 <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions