|
@@ -1316,10 +1316,9 @@ out:
|
|
|
}
|
|
|
|
|
|
int remove_block_group_free_space(struct btrfs_trans_handle *trans,
|
|
|
- struct btrfs_fs_info *fs_info,
|
|
|
struct btrfs_block_group_cache *block_group)
|
|
|
{
|
|
|
- struct btrfs_root *root = fs_info->free_space_root;
|
|
|
+ struct btrfs_root *root = trans->fs_info->free_space_root;
|
|
|
struct btrfs_path *path;
|
|
|
struct btrfs_key key, found_key;
|
|
|
struct extent_buffer *leaf;
|
|
@@ -1327,7 +1326,7 @@ int remove_block_group_free_space(struct btrfs_trans_handle *trans,
|
|
|
int done = 0, nr;
|
|
|
int ret;
|
|
|
|
|
|
- if (!btrfs_fs_compat_ro(fs_info, FREE_SPACE_TREE))
|
|
|
+ if (!btrfs_fs_compat_ro(trans->fs_info, FREE_SPACE_TREE))
|
|
|
return 0;
|
|
|
|
|
|
if (block_group->needs_free_space) {
|