bcachefs: bpos is misaligned on big endian
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 25 Nov 2023 17:16:22 +0000 (12:16 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 26 Nov 2023 02:48:42 +0000 (21:48 -0500)
commit3f3ae1250e739fb446639efad0ba916ba0a012f0
tree45cf4240511839b19b067892ed0e768c99a0fd72
parente4f72bb46a774b449ffe864fa6fffa7ecbf8f3f7
bcachefs: bpos is misaligned on big endian

bkey embeds a bpos that is misaligned on big endian; this is so that
bch2_bkey_swab() works correctly without having to differentiate between
packed and non-packed keys (a debatable design decision).

This means it can't have the __aligned() tag on big endian.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h