summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2013-02-20 22:23:40 +0100
committerChris Mason <chris.mason@fusionio.com>2013-02-20 23:08:18 +0100
commit86db25785a6e7cacc1ee868fe437e8a2957eae94 (patch)
tree16a9b9f346a3c2e0bed40e74498367e29a2c4457 /block
parentbtrfs: limit fallocate extent reservation to 256MB (diff)
downloadlinux-86db25785a6e7cacc1ee868fe437e8a2957eae94.tar.xz
linux-86db25785a6e7cacc1ee868fe437e8a2957eae94.zip
Btrfs: fix max chunk size on raid5/6
We try to limit the size of a chunk to 10GB, which keeps the unit of work reasonable during balance and resize operations. The limit checks were taking into account the number of copies of the data we had but what they really should be doing is comparing against the logical size of the chunk we're creating. This moves the code around a little to use the count of data stripes from raid5/6. Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions