]> 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)
commit38159a5960ed416fe758038b74d8faa2afef971d
treec377e799cae8d28b760cc199fdbf69eed1ab86d0
parent4561802a0fc9401c5f80f4ac9e76783b624089bd
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