Re: [PATCH] btrfs: don't create or leak aliased root while cleaning up orphans
From: David Sterba <hidden>
Date: 2016-08-23 11:48:17
From: David Sterba <hidden>
Date: 2016-08-23 11:48:17
On Wed, Aug 17, 2016 at 09:58:33PM -0400, Jeff Mahoney wrote:
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: <redacted> # 4.5 Signed-off-by: Jeff Mahoney <redacted>
Reviewed-by: David Sterba <dsterba@suse.com>