summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorJosef Bacik2011-08-04 16:25:02 +0200
committerJosef Bacik2011-10-19 21:12:31 +0200
commit7709cde33f12db71efb377fae4ae7aab6c94ebc6 (patch)
treef60b4ff7dafa0fcf64e0d9e9445d6984739cbfe6 /fs/btrfs/transaction.c
parentBtrfs: skip looking for delalloc if we don't have ->fill_delalloc (diff)
downloadkernel-qcow2-linux-7709cde33f12db71efb377fae4ae7aab6c94ebc6.tar.gz
kernel-qcow2-linux-7709cde33f12db71efb377fae4ae7aab6c94ebc6.tar.xz
kernel-qcow2-linux-7709cde33f12db71efb377fae4ae7aab6c94ebc6.zip
Btrfs: calculate checksum space correctly
We have not been reserving enough space for checksums. We were just reserving bytes for the checksum items themselves, we were not taking into account having to cow the tree and such. This patch adds a csum_bytes counter to the inode for keeping track of the number of bytes outstanding we have for checksums. Then we calculate how many leaves would be required for the checksums we are given and use that to reserve space. This adds a significant amount of bytes to our reservations, but we will handle this later. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
0 files changed, 0 insertions, 0 deletions