]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: re-add root to dead root list if we stop dropping it
authorJosef Bacik <jbacik@fusionio.com>
Wed, 17 Jul 2013 23:30:20 +0000 (19:30 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 19 Jul 2013 19:07:19 +0000 (15:07 -0400)
commit48097930053fd9adc22652dd14634a2bd494db08
treec377e799cae8d28b760cc199fdbf69eed1ab86d0
parent3210b529272f312beb13a3c95a54ae4a44bd83c1
Btrfs: re-add root to dead root list if we stop dropping it

If we stop dropping a root for whatever reason we need to add it back to the
dead root list so that we will re-start the dropping next transaction commit.
The other case this happens is if we recover a drop because we will add a root
without adding it to the fs radix tree, so we can leak it's root and commit root
extent buffer, adding this to the dead root list makes this cleanup happen.
Thanks,

Cc: stable@vger.kernel.org
Reported-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c