|
@@ -10180,8 +10180,7 @@ next:
|
|
|
|
|
|
int btrfs_make_block_group(struct btrfs_trans_handle *trans,
|
|
|
struct btrfs_fs_info *fs_info, u64 bytes_used,
|
|
|
- u64 type, u64 chunk_objectid, u64 chunk_offset,
|
|
|
- u64 size)
|
|
|
+ u64 type, u64 chunk_offset, u64 size)
|
|
|
{
|
|
|
struct btrfs_block_group_cache *cache;
|
|
|
int ret;
|
|
@@ -10193,7 +10192,8 @@ int btrfs_make_block_group(struct btrfs_trans_handle *trans,
|
|
|
return -ENOMEM;
|
|
|
|
|
|
btrfs_set_block_group_used(&cache->item, bytes_used);
|
|
|
- btrfs_set_block_group_chunk_objectid(&cache->item, chunk_objectid);
|
|
|
+ btrfs_set_block_group_chunk_objectid(&cache->item,
|
|
|
+ BTRFS_FIRST_CHUNK_TREE_OBJECTID);
|
|
|
btrfs_set_block_group_flags(&cache->item, type);
|
|
|
|
|
|
cache->flags = type;
|