Btrfs: insert orphan roots into fs radix tree
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 25 Sep 2013 13:47:43 +0000 (21:47 +0800)
committerChris Mason <chris.mason@fusionio.com>
Fri, 11 Oct 2013 01:30:53 +0000 (21:30 -0400)
commit14927d95464956ffe8af4278331a6bfea94ab780
treeeb9dcde86e2ea82d4c4f9997646cc6bcde75a49e
parent7bf811a595a895b7a886dcf218d0d34f97df76dc
Btrfs: insert orphan roots into fs radix tree

Now we don't drop all the deleted snapshots/subvolumes before the space
balance. It means we have to relocate the space which is held by the dead
snapshots/subvolumes. So we must into them into fs radix tree, or we would
forget to commit the change of them when doing transaction commit, and it
would corrupt the metadata.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/root-tree.c