summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorMiao Xie2012-09-06 12:04:57 +0200
committerChris Mason2012-10-01 21:19:14 +0200
commit903889f462409c816893abd02d88636f7b4a7774 (patch)
tree842dce20600c595ede74678ea259a872c86dd12b /fs/btrfs/qgroup.c
parentBtrfs: output more information when aborting a unused transaction handle (diff)
downloadkernel-qcow2-linux-903889f462409c816893abd02d88636f7b4a7774.tar.gz
kernel-qcow2-linux-903889f462409c816893abd02d88636f7b4a7774.tar.xz
kernel-qcow2-linux-903889f462409c816893abd02d88636f7b4a7774.zip
Btrfs: fix wrong size for the reservation when doing, file pre-allocation.
When we ran fsstress(a program in xfstests), the filesystem hung up when it is full. It was because the space reserved in btrfs_fallocate() was wrong, btrfs_fallocate() just used the size of the pre-allocation to reserve the space, didn't took the block size aligning into account, so the size of the reserved space was less than the allocated space, it caused the over reserve problem and made the filesystem hung up when invoking cow_file_range(). Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
0 files changed, 0 insertions, 0 deletions