Re: [PATCH AUTOSEL 5.6 051/129] btrfs: handle NULL roots in btrfs_put/btrfs_grab_fs_root

From: Sasha Levin
Date: Tue Apr 21 2020 - 20:50:12 EST


On Wed, Apr 15, 2020 at 03:22:24PM +0200, David Sterba wrote:
On Wed, Apr 15, 2020 at 07:33:26AM -0400, Sasha Levin wrote:
From: Josef Bacik <josef@xxxxxxxxxxxxxx>

[ Upstream commit 4cdfd93002cb84471ed85b4999cd38077a317873 ]

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).

This is another patch from the preparatory series, not needed for
stable. Please drop it, thanks.

Dropped, thanks!

--
Thanks,
Sasha