aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2023-11-28 12:30:26 +0000
committerJens Axboe <[email protected]>2023-11-28 19:11:08 +0000
commitfad907cffd4bde7384812cf32fcf69becab805cc (patch)
treeb21add28c86b3dcb1f1377e2be89685e8646397a /security/selinux/hooks.c
parentbcache: revert replacing IS_ERR_OR_NULL with IS_ERR (diff)
downloadkernel-fad907cffd4bde7384812cf32fcf69becab805cc.tar.gz
kernel-fad907cffd4bde7384812cf32fcf69becab805cc.zip
block: move .bd_inode into 1st cacheline of block_device
The .bd_inode field of block_device is used in IO fast path of blkdev_write_iter() and blkdev_llseek(), so it is more efficient to keep it into the 1st cacheline. .bd_openers is only touched in open()/close(), and .bd_size_lock is only for updating bdev capacity, which is in slow path too. So swap .bd_inode layout with .bd_openers & .bd_size_lock to move .bd_inode into the 1st cache line. Cc: Yu Kuai <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions