@@ -7012,6 +7012,12 @@ int btrfs_read_block_groups(struct btrfs_root *root)
*/
exclude_super_stripes(root, cache);
+ if (cache->flags & BTRFS_BLOCK_GROUP_SYSTEM) {
+ ret = add_excluded_extent(root, cache->key.objectid,
+ cache->key.offset - 4096);
+ BUG_ON(ret);
+ }
+
/*
* check for two cases, either we are full, and therefore
* don't need to bother with the caching work since we won't
@@ -2357,8 +2357,10 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
}
if (type & BTRFS_BLOCK_GROUP_DATA) {
- max_stripe_size = 1024 * 1024 * 1024;
- max_chunk_size = 10 * max_stripe_size;
+// max_stripe_size = 1024 * 1024 * 1024;
+// max_chunk_size = 10 * max_stripe_size;
+ max_stripe_size = 64 * 1024 * 1024;
+ max_chunk_size = 2 * max_stripe_size;
} else if (type & BTRFS_BLOCK_GROUP_METADATA) {
max_stripe_size = 256 * 1024 * 1024;
max_chunk_size = max_stripe_size;