Josef Bacik 01dea1efc2 Btrfs: fix how we set max_size for free space clusters
This patch fixes a problem where max_size can be set to 0 even though we
filled the cluster properly.  We set max_size to 0 if we restart the cluster
window, but if the new start entry is big enough to be our new cluster then we
could return with a max_size set to 0, which will mean the next time we try to
allocate from this cluster it will fail.  So set max_extent to the entry's
size.  Tested this on my box and now we actually allocate from the cluster
after we fill it.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-11-11 14:20:17 -05:00
..
2009-10-13 13:51:39 -04:00
2009-10-14 10:32:49 -04:00
2008-09-25 11:04:06 -04:00
2009-11-11 14:20:16 -05:00
2009-02-04 09:28:28 -05:00
2009-04-02 16:46:06 -04:00
2009-10-14 10:32:49 -04:00
2009-01-05 21:25:51 -05:00
2009-09-29 13:51:04 -04:00
2009-10-13 13:51:39 -04:00
2009-02-04 09:29:13 -05:00