]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Btrfs: fix chunk allocate size calculation
authorJosef Bacik <josef@redhat.com>
Wed, 17 Mar 2010 20:45:56 +0000 (20:45 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 31 Mar 2010 01:19:09 +0000 (21:19 -0400)
commit0cad8a1130f77c7c445e3298c0e3593b3c0ef439
tree1f045f7baccc9dd2c1ac805b94cdedc4bbab618f
parent287a0ab91d25ca982f895a76402e5893b47ed7a6
Btrfs: fix chunk allocate size calculation

If the amount of free space left in a device is less than what we think should
be the minimum size, just ignore the minimum size and use the amount we have.  I
ran into this running tests on a 600mb volume, the chunk allocator wouldn't let
me allocate the last 52mb of the disk for data because we want to have at least
64mb chunks for data.  This patch fixes that problem.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c