• Josef Bacik's avatar
    Btrfs: fix chunk allocate size calculation · 0cad8a11
    Josef Bacik authored
    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: default avatarJosef Bacik <josef@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
volumes.c 85.6 KB