Re: [PATCH] btrfs: don't create or leak aliased root while cleaning up orphans

2016-08-23 Thread David Sterba
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 sh

[PATCH] btrfs: don't create or leak aliased root while cleaning up orphans

2016-08-17 Thread Jeff Mahoney
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: # 4.5 Signed-off-b