btrfs-progs: Add boolean to signal whether we are re-initing extent tree
Add a boolean to record whether the extent tree is being re-initialised in the current transaction. This is going to be needed by the delayed refs code. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f23d10d9c0
commit
677acdf534
|
@ -46,6 +46,7 @@ struct btrfs_trans_handle* btrfs_start_transaction(struct btrfs_root *root,
|
|||
fs_info->generation++;
|
||||
h->transid = fs_info->generation;
|
||||
h->blocks_reserved = num_blocks;
|
||||
h->reinit_extent_tree = false;
|
||||
root->last_trans = h->transid;
|
||||
root->commit_root = root->node;
|
||||
extent_buffer_get(root->node);
|
||||
|
|
|
@ -27,6 +27,7 @@ struct btrfs_trans_handle {
|
|||
u64 transid;
|
||||
u64 alloc_exclude_start;
|
||||
u64 alloc_exclude_nr;
|
||||
bool reinit_extent_tree;
|
||||
unsigned long blocks_reserved;
|
||||
unsigned long blocks_used;
|
||||
struct btrfs_block_group_cache *block_group;
|
||||
|
|
Loading…
Reference in New Issue