Skip to content
Commit 1a0afa0e authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba
Browse files

btrfs: free the reloc_control in a consistent way



If we have an error while processing the reloc roots we could leak roots
that were added to rc->reloc_roots before we hit the error.  We could
have also not removed the reloc tree mapping from our rb_tree, so clean
up any remaining nodes in the reloc root rb_tree.

Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ use rbtree_postorder_for_each_entry_safe ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2abc726a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment