Btrfs-progs: reset balance before reiniting extent root
authorJosef Bacik <jbacik@fb.com>
Wed, 11 Dec 2013 16:17:52 +0000 (11:17 -0500)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:14 +0000 (08:22 -0800)
commitd04707f78735d6bb119a2d088f99547949a65f3c
tree8042d41346e7422611797eb8523a837a328637ad
parent80d5bf799e730d63ba52243857de43fc4aca6c75
Btrfs-progs: reset balance before reiniting extent root

When we re-init the extent root we make it completely empty, so when we reset a
pending balance we will fail to find refs for any blocks we may cow, which will
result in errors and we will exit out.  We need to reset the balance first so
the normal cow stuff doesn't freak out and then we can re-init the extent tree.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-check.c