aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2024-02-25 03:01:41 +0000
committerLinus Torvalds <[email protected]>2024-03-02 17:15:01 +0000
commit7838b4656110d950afdd92a081cc0f33e23e0ea8 (patch)
treee95689b199bb60bf8dbf6aac556b5f30bd11aeb3 /security/selinux/hooks.c
parentMerge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/... (diff)
downloadkernel-7838b4656110d950afdd92a081cc0f33e23e0ea8.tar.gz
kernel-7838b4656110d950afdd92a081cc0f33e23e0ea8.zip
block: define bvec_iter as __packed __aligned(4)
In commit 19416123ab3e ("block: define 'struct bvec_iter' as packed"), what we need is to save the 4byte padding, and avoid `bio` to spread on one extra cache line. It is enough to define it as '__packed __aligned(4)', as '__packed' alone means byte aligned, and can cause compiler to generate horrible code on architectures that don't support unaligned access in case that bvec_iter is embedded in other structures. Cc: Mikulas Patocka <[email protected]> Suggested-by: Linus Torvalds <[email protected]> Fixes: 19416123ab3e ("block: define 'struct bvec_iter' as packed") Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions