diff options
author | Chris Mason <chris.mason@oracle.com> | 2012-01-16 17:13:11 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-01-17 00:38:24 +0400 |
commit | 96bdc7dc61fb1b1e8e858dafb13abee8482ba064 (patch) | |
tree | eddbfc7a931c7063ded4505c99d11d1702117064 /fs/btrfs/volumes.c | |
parent | f248679e86fead40cc78e724c7181d6bec1a2046 (diff) | |
download | linux-96bdc7dc61fb1b1e8e858dafb13abee8482ba064.tar.xz |
Btrfs: use larger system chunks
system chunks by default are very small. This makes them slightly
larger and also fixes the conditional checks to make sure we don't
allocate a billion of them at once.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 59e878f9fdcc..7ffdb154daec 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -3166,7 +3166,7 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, max_stripe_size = 256 * 1024 * 1024; max_chunk_size = max_stripe_size; } else if (type & BTRFS_BLOCK_GROUP_SYSTEM) { - max_stripe_size = 8 * 1024 * 1024; + max_stripe_size = 32 * 1024 * 1024; max_chunk_size = 2 * max_stripe_size; } else { printk(KERN_ERR "btrfs: invalid chunk type 0x%llx requested\n", |