Btrfs: fall back to non-inline if we don't have enough space
authorJosef Bacik <josef@redhat.com>
Wed, 23 May 2012 20:10:14 +0000 (16:10 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 14:23:38 +0000 (10:23 -0400)
commit2adcac1a7331d93a17285804819caa96070b231f
treed5da1421dc605b64d34bc0cab4ae91de086499fa
parent8a35d95ff4680a456d3ce47df9638f33d4f54f20
Btrfs: fall back to non-inline if we don't have enough space

If cow_file_range_inline fails with ENOSPC we abort the transaction which
isn't very nice.  This really shouldn't be happening anyways but there's no
sense in making it a horrible error when we can easily just go allocate
normal data space for this stuff.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c