]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't leak reloc root nodes on error
authorJosef Bacik <jbacik@fb.com>
Fri, 2 Sep 2016 19:25:43 +0000 (15:25 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 16:08:44 +0000 (18:08 +0200)
commite77e219b76dbd5fa0600d756eeb827b3ff75366c
tree1fa2a56a821b5b40a704e535c8c37734a39354a2
parent3507c832b3630e72985845a7ac7eb41a534ba6b0
Btrfs: don't leak reloc root nodes on error

We don't track the reloc roots in any sort of normal way, so the only way the
root/commit_root nodes get free'd is if the relocation finishes successfully and
the reloc root is deleted.  Fix this by free'ing them in free_reloc_roots.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c