diff options
author | David Sterba <dsterba@suse.com> | 2020-09-15 21:00:04 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:53:51 +0100 |
commit | f944d2cb209674411280737d5fb660e98b8a8314 (patch) | |
tree | 8d228fe56070c190ba661c5bc70bd9dcef28c7fc /fs/btrfs/disk-io.c | |
parent | 3b5418fba372c28511ebe9f83b5e26e8ab34b9f9 (diff) | |
download | lwn-f944d2cb209674411280737d5fb660e98b8a8314.tar.gz lwn-f944d2cb209674411280737d5fb660e98b8a8314.zip |
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 142bd84d028a..cf01f97a54cb 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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); |