Btrfs-progs: reset chunk state if we restart check
authorJosef Bacik <jbacik@fb.com>
Fri, 10 Oct 2014 20:57:11 +0000 (16:57 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Oct 2014 08:40:22 +0000 (10:40 +0200)
commita8e9c9a65b337117e87d2a040697edf6816369c3
tree8bd13b02f7279e7c0ab88f0b02a40abd82d00356
parent2ba12173d59af0b3f8885494eae9efbe15d143d6
Btrfs-progs: reset chunk state if we restart check

If we hid a corrupt block that we fix and we restart the fsck loop you will get
lots of noise about duplicate block groups and such.  This is because we don't
clear the block group and chunk cache when we do this restart.  This patch fixes
that, which is a little tricky since the structs are linked together with
various linked lists, but this passed with a user who was hitting this problem.
Thanks,

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