btrfs: use root_item helpers for limit and flags in btrfs_create_tree
For consistency use the available helpers to set flags and limit. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3b5418fba3
commit
f944d2cb20
@ -1166,8 +1166,8 @@ struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
|
||||
root->commit_root = btrfs_root_node(root);
|
||||
set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state);
|
||||
|
||||
root->root_item.flags = 0;
|
||||
root->root_item.byte_limit = 0;
|
||||
btrfs_set_root_flags(&root->root_item, 0);
|
||||
btrfs_set_root_limit(&root->root_item, 0);
|
||||
btrfs_set_root_bytenr(&root->root_item, leaf->start);
|
||||
btrfs_set_root_generation(&root->root_item, trans->transid);
|
||||
btrfs_set_root_level(&root->root_item, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user