• J
    Btrfs: fix chunk allocate size calculation · 0cad8a11
    Josef Bacik 提交于
    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: NJosef Bacik <josef@redhat.com>
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    0cad8a11
volumes.c 85.6 KB