btrfs-progs: check for matching free space in cache
authorJosef Bacik <jbacik@fb.com>
Fri, 17 Apr 2015 18:02:15 +0000 (14:02 -0400)
committerDavid Sterba <dsterba@suse.cz>
Fri, 24 Apr 2015 13:42:04 +0000 (15:42 +0200)
commit2681e00f00fe3dc0eb5d78dfeb344d18fccaeb6c
treec69c413ce7f4b3d4372441635b5d0d29890cec68
parentfb399a13013889c9dc91ba75d4d6ce549500d2f2
btrfs-progs: check for matching free space in cache

We have this check in the kernel but not in userspace, which makes fsck
fail when we wouldn't have a problem in the kernel.  This was meant to
catch this case because it really isn't good, unfortunately it will
require a design change to fix in the kernel so in the meantime add this
check so we can be sure our tests only catch real problems.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
ctree.h
extent-tree.c
free-space-cache.c