summaryrefslogtreecommitdiff
path: root/fs/btrfs/free-space-cache.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2009-11-11 02:23:48 (GMT)
committerChris Mason <chris.mason@oracle.com>2009-11-11 19:20:20 (GMT)
commitf5a84ee3cdd88d96b7bcede10af58598ad8d52a7 (patch)
tree5f69342df0c457aca31176234a801bf3607978c5 /fs/btrfs/free-space-cache.h
parentccf0e72537a9f68611ca575121afd08e2b4d0fb0 (diff)
downloadlinux-f5a84ee3cdd88d96b7bcede10af58598ad8d52a7.tar.xz
Btrfs: fallback on uncompressed io if compressed io fails
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: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.h')
0 files changed, 0 insertions, 0 deletions