Skip to content
  • Josef Bacik's avatar
    Btrfs: fallback on uncompressed io if compressed io fails · f5a84ee3
    Josef Bacik authored
    
    
    Currently compressed IO does not deal with not having its entire extent able to
    be allocated.  So if we have enough free space to allocate for the extent, but
    its not contiguous, it will fail spectacularly.  This patch fixes this by
    falling back on uncompressed IO which lets us spread the delalloc extent across
    multiple extents.  I tested this by making us randomly think the reservation had
    failed to make it fallback on the uncompressed io way and it seemed to work
    fine.  Thanks,
    
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    f5a84ee3