summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2020-01-24 09:32:18 -0500
committerDavid Sterba <dsterba@suse.com>2020-03-23 17:01:25 +0100
commit96dfcb46ffca4803627f7ae74085fbb2bae2acc5 (patch)
tree32fcfadaf1faf1f62edb2f2a2737d8a335bf43c6 /fs/btrfs/tree-log.c
parent3f1c64ce04387773d2b0d8ef6a7e573ff80e4436 (diff)
btrfs: push __setup_root into btrfs_alloc_root
There's no reason to not init the root at alloc time, and with later patches it actually causes problems if we error out mounting the fs before the tree_root is init'ed because we expect it to have a valid ref count. Fix this by pushing __setup_root into btrfs_alloc_root. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions