btrfs: load free space cache into a temporary ctl
[sfrench/cifs-2.6.git] / fs / btrfs / tests / btrfs-tests.c
index b36e88753f1f10efc5d93fd0f8211270e555a956..8ca334d554afb9cef5539d1a94af71d2468ac36c 100644 (file)
@@ -225,7 +225,7 @@ btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info,
        INIT_LIST_HEAD(&cache->list);
        INIT_LIST_HEAD(&cache->cluster_list);
        INIT_LIST_HEAD(&cache->bg_list);
-       btrfs_init_free_space_ctl(cache);
+       btrfs_init_free_space_ctl(cache, cache->free_space_ctl);
        mutex_init(&cache->free_space_lock);
 
        return cache;