Re: [PATCH AUTOSEL 4.4 15/65] btrfs: don't create or leak aliased root while cleaning up orphans

David Sterba
2018-10-25T15:13:01Z

On Thu, Oct 25, 2018 at 10:16:15AM -0400, Sasha Levin wrote:
> From: Jeff Mahoney <jeffm@suse.com>
>
> [ Upstream commit 35bbb97fc898aeb874cb7c8b746f091caa359994 ]
>
> commit 909c3a22da3 (Btrfs: fix loading of orphan roots leading to BUG_ON)
> avoids the BUG_ON but can add an aliased root to the dead_roots list or
> leak the root.
>
> Since we've already been loading roots into the radix tree, we should
> use it before looking the root up on disk.
>
> Cc: <stable@vger.kernel.org> # 4.5

Ack for 4.4 stable.