Thread (26 messages) 26 messages, 3 authors, 2021-01-14

Re: [PATCH 11/13] btrfs: keep track of the root owner for relocation reads

From: David Sterba <hidden>
Date: 2021-01-11 22:26:05

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help