Files
linux-stable-mirror/include/linux
Ming LeiandGreg Kroah-Hartman 2664bb298c 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:48:44 +00:00
..
2024-01-25 15:35:39 -08:00
2023-11-28 17:19:55 +00:00
2023-09-11 15:24:16 -07:00
2024-01-05 15:19:42 +01:00
2023-09-01 00:29:34 +02:00
2023-09-13 10:48:48 +02:00
2023-11-20 11:58:53 +01:00
2024-02-05 20:14:27 +00:00
2023-11-28 17:19:54 +00:00
2023-09-29 17:20:46 -07:00
2023-11-28 17:19:48 +00:00
2023-10-06 11:01:23 +02:00
2023-10-06 11:01:23 +02:00
2024-01-31 16:19:01 -08:00
2023-11-28 17:19:38 +00:00
2024-01-31 16:18:47 -08:00
2023-11-20 11:58:56 +01:00