Files
linux-stable-mirror/include/linux
Ming Lei 0e351d1aa2 block: define bvec_iter as __packed __aligned(4)
[ Upstream commit 7838b46561 ]

In commit 19416123ab ("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 <mpatocka@redhat.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: 19416123ab ("block: define 'struct bvec_iter' as packed")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-06 14:45:19 +00:00
..
2023-07-19 16:21:11 +02:00
2024-02-23 09:12:48 +01:00
2024-02-23 09:12:51 +01:00
2023-12-20 17:00:20 +01:00
2024-01-10 17:10:30 +01:00
2023-10-10 22:00:35 +02:00
2023-05-30 14:03:22 +01:00
2023-11-20 11:51:55 +01:00
2023-11-20 11:51:50 +01:00
2024-01-25 15:27:20 -08:00
2024-02-05 20:12:55 +00:00
2023-11-28 17:07:03 +00:00
2023-10-19 23:08:50 +02:00
2023-10-19 23:08:50 +02:00
2023-07-19 16:21:54 +02:00
2024-01-31 16:17:04 -08:00
2023-12-13 18:39:08 +01:00
2023-08-16 18:27:20 +02:00