On Wed, Dec 16, 2020 at 11:22:15AM -0500, Josef Bacik wrote:
quoted hunk ↗ jump to hunk
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -98,6 +98,7 @@ struct tree_block {
u64 bytenr;
}; /* Use rb_simple_node for search/insert */
struct btrfs_key key;
+ u64 owner;
unsigned int level:8;
unsigned int key_ready:1;
This would probably lead to bad packing, key is 17 bytes and placing
u64 after that adds 7 bytes for proper alignment. The bitfield members
following the key are aligned to a byte so it would work if owner is
before key.