Btrfs-progs: deal with mismatch index between dir index and inode ref
authorJosef Bacik <jbacik@fb.com>
Fri, 10 Oct 2014 20:57:15 +0000 (16:57 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Oct 2014 08:47:59 +0000 (10:47 +0200)
commitc2e686d76a310623495c63b2e3dd8b5ec8bab194
tree089f43d83695b2a55619566543bf24bd00491000
parentbb561f5485ab5852214e115116507524e45daff8
Btrfs-progs: deal with mismatch index between dir index and inode ref

Sometimes we have a dir index and an inode ref that don't agree on the index.
In this case just assume that the inode ref is the ultimate authority on the
subject and delete the dir index.  This means we have to not reset index if we
find a mismatched inode ref to make sure we delete the right dir index.  Thanks,

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