aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2009-12-07 21:45:59 +0000
committerChris Mason <chris.mason@oracle.com>2009-12-17 12:33:38 -0500
commit83d3c9696fed237a3d96fce18299e2fcf112109f (patch)
treecafe54ba7801332c54adab5b1af3e0865bc32386 /fs/btrfs/volumes.c
parent20a5239a5d0f340e29827a6a2d28a138001c44b8 (diff)
downloadkernel_goldelico_gta04-83d3c9696fed237a3d96fce18299e2fcf112109f.zip
kernel_goldelico_gta04-83d3c9696fed237a3d96fce18299e2fcf112109f.tar.gz
kernel_goldelico_gta04-83d3c9696fed237a3d96fce18299e2fcf112109f.tar.bz2
Btrfs: make metadata chunks smaller
This patch makes us a bit less zealous about making sure we have enough free metadata space by pearing down the size of new metadata chunks to 256mb instead of 1gb. Also, we used to try an allocate metadata chunks when allocating data, but that sort of thing is done elsewhere now so we can just remove it. With my -ENOSPC test I used to have 3gb reserved for metadata out of 75gb, now I have 1.7gb. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 7eda483..198cff2 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2209,7 +2209,7 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
max_chunk_size = 10 * calc_size;
min_stripe_size = 64 * 1024 * 1024;
} else if (type & BTRFS_BLOCK_GROUP_METADATA) {
- max_chunk_size = 4 * calc_size;
+ max_chunk_size = 256 * 1024 * 1024;
min_stripe_size = 32 * 1024 * 1024;
} else if (type & BTRFS_BLOCK_GROUP_SYSTEM) {
calc_size = 8 * 1024 * 1024;