Re: [PATCH 01/43] btrfs: push __setup_root into btrfs_alloc_root

Nikolay Borisov
2020-01-20T14:24:00Z

On 17.01.20 г. 23:25 ч., Josef Bacik wrote:
> 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.
>
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

It's good we centralize as much as we can so :

Reviewed-by: Nikolay Borisov <nborisov@suse.com>