btrfs: use a dedicated data structure for chunk maps
[linux-2.6-microblaze.git] / fs / btrfs / tests / btrfs-tests.c
index ca09cf9..b50cfac 100644 (file)
@@ -28,6 +28,7 @@ const char *test_error[] = {
        [TEST_ALLOC_INODE]           = "cannot allocate inode",
        [TEST_ALLOC_BLOCK_GROUP]     = "cannot allocate block group",
        [TEST_ALLOC_EXTENT_MAP]      = "cannot allocate extent map",
+       [TEST_ALLOC_CHUNK_MAP]       = "cannot allocate chunk map",
 };
 
 static const struct super_operations btrfs_test_super_ops = {
@@ -185,7 +186,7 @@ void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info)
        }
        spin_unlock(&fs_info->buffer_lock);
 
-       btrfs_mapping_tree_free(&fs_info->mapping_tree);
+       btrfs_mapping_tree_free(fs_info);
        list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices,
                                 dev_list) {
                btrfs_free_dummy_device(dev);