Re: [PATCH 09/43] btrfs: handle NULL roots in btrfs_put/btrfs_grab_fs_root

Nikolay Borisov
2020-01-22T09:54:01Z

On 17.01.20 г. 23:25 ч., Josef Bacik wrote:
> We want to use this for dropping all roots, and in some error cases we
> may not have a root, so handle this to make the cleanup code easier.
> Make btrfs_grab_fs_root the same so we can use it in cases where the
> root may not exist (like the quota root).
>
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

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