Btrfs-progs: fix the allocator
authorJosef Bacik <jbacik@fusionio.com>
Mon, 3 Jun 2013 19:13:05 +0000 (15:13 -0400)
committerChris Mason <chris.mason@fusionio.com>
Wed, 19 Jun 2013 17:52:45 +0000 (13:52 -0400)
commit7a70b159af8ef70b87771251a7ba45818ef19cfa
tree0861c1d46bed4e7d1b1bcf1fad19be96e8bbb907
parente0ac34931aedc0df48171f47a2b2b77a503fbc41
Btrfs-progs: fix the allocator

The allocator looks for these hints when moving on to another block group which
will make it reset which block group it looks at, when we've already searched
that block group and didn't find any space to allocate, we need to fix this by
just letting the allocator make the determination if the block group is good
enough.  This also fixes a problem where if we couldn't find space in the block
group we were given we'd just error out instead of moving on to the next block
group.  Previously I couldn't fix some file systems that were relatively full,
but with this patch I can now run fsck on them with no allocation errors.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
extent-tree.c