From e27b03b35b09f9cbee9a69bd99951d7adaf02fa7 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 15 Jun 2020 16:59:36 -0400 Subject: bcachefs: Give bkey_cached_key same attributes as bpos Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- fs/bcachefs/btree_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs') diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h index 345a06bac0fe..f741bb79d49b 100644 --- a/fs/bcachefs/btree_types.h +++ b/fs/bcachefs/btree_types.h @@ -298,7 +298,7 @@ struct btree_key_cache { struct bkey_cached_key { u32 btree_id; struct bpos pos; -} __packed; +} __attribute__((packed, aligned(4))); #define BKEY_CACHED_DIRTY 0 -- cgit v1.2.3