aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@redhat.com>2009-06-27 21:07:34 -0400
committerChris Mason <chris.mason@oracle.com>2009-07-02 13:41:16 -0400
commita970b0a16cc416a509d5ae8b1d70978664e6f4fe (patch)
treefa371ca55fd97cd00ddb3b27ba1a784551a469a0 /fs/btrfs/ctree.h
parentc8a894d77de4a1e0a544577fd4eabc9aacd453a8 (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/ctree.h')
0 files changed, 0 insertions, 0 deletions