diff options
author | Josef Bacik <jbacik@redhat.com> | 2009-06-27 21:07:34 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-07-02 13:41:16 -0400 |
commit | a970b0a16cc416a509d5ae8b1d70978664e6f4fe (patch) | |
tree | fa371ca55fd97cd00ddb3b27ba1a784551a469a0 /fs/btrfs/relocation.c | |
parent | c8a894d77de4a1e0a544577fd4eabc9aacd453a8 (diff) |
Btrfs: account for space we may use in fallocate
Using Eric Sandeen's xfstest for fallocate, you can easily trigger a ENOSPC
panic on btrfs. This is because we do not account for data we may use when
doing the fallocate. This patch fixes the problem by properly reserving space,
and then just freeing it when we are done. The reservation stuff was made with
delalloc in mind, so its a little crude for this case, but it keeps the box
from panicing.
Signed-off-by: Josef Bacik <jbacik@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions