diff options
author | Arne Jansen <sensille@gmx.net> | 2011-09-14 08:01:24 -0400 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2011-12-22 10:22:28 -0500 |
commit | eebe063b7f916087cd5c61de57b20a3a30894a96 (patch) | |
tree | d49c4a91abd9bef6f2fd546715f719c66ae1fd90 /fs/btrfs/delayed-ref.h | |
parent | 66d7e7f09f77456fe68683247d77721032a00ee5 (diff) |
Btrfs: always save ref_root in delayed refs
For consistent backref walking and (later) qgroup calculation the
information to which root a delayed ref belongs is useful even for shared
refs.
Signed-off-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/delayed-ref.h')
-rw-r--r-- | fs/btrfs/delayed-ref.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/btrfs/delayed-ref.h b/fs/btrfs/delayed-ref.h index 8316bff18d30..a5fb2bc83732 100644 --- a/fs/btrfs/delayed-ref.h +++ b/fs/btrfs/delayed-ref.h | |||
@@ -98,19 +98,15 @@ struct btrfs_delayed_ref_head { | |||
98 | 98 | ||
99 | struct btrfs_delayed_tree_ref { | 99 | struct btrfs_delayed_tree_ref { |
100 | struct btrfs_delayed_ref_node node; | 100 | struct btrfs_delayed_ref_node node; |
101 | union { | 101 | u64 root; |
102 | u64 root; | 102 | u64 parent; |
103 | u64 parent; | ||
104 | }; | ||
105 | int level; | 103 | int level; |
106 | }; | 104 | }; |
107 | 105 | ||
108 | struct btrfs_delayed_data_ref { | 106 | struct btrfs_delayed_data_ref { |
109 | struct btrfs_delayed_ref_node node; | 107 | struct btrfs_delayed_ref_node node; |
110 | union { | 108 | u64 root; |
111 | u64 root; | 109 | u64 parent; |
112 | u64 parent; | ||
113 | }; | ||
114 | u64 objectid; | 110 | u64 objectid; |
115 | u64 offset; | 111 | u64 offset; |
116 | }; | 112 | }; |