Searched refs:free_space_ctl (Results 1 – 8 of 8) sorted by relevance
337 if (cache->free_space_ctl->free_extents != num_extents) { in check_num_extents_and_bitmaps()340 cache->free_space_ctl->free_extents, num_extents); in check_num_extents_and_bitmaps()346 cache->free_space_ctl->total_bitmaps, num_bitmaps); in check_num_extents_and_bitmaps()362 if (cache->free_space_ctl->free_space != 0) { in check_cache_empty()426 orig_free_space_ops = cache->free_space_ctl->op; in test_steal_space_from_bitmap_to_extent()427 cache->free_space_ctl->op = &test_free_space_ops; in test_steal_space_from_bitmap_to_extent()614 if (cache->free_space_ctl->free_space != sectorsize) { in test_steal_space_from_bitmap_to_extent()821 cache->free_space_ctl->op = orig_free_space_ops; in test_steal_space_from_bitmap_to_extent()895 orig_free_space_ops = cache->free_space_ctl->op; in test_bytes_index()896 cache->free_space_ctl->op = &test_free_space_ops; in test_bytes_index()[all …]
226 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_alloc_dummy_block_group()228 if (!cache->free_space_ctl) { in btrfs_alloc_dummy_block_group()241 btrfs_init_free_space_ctl(cache, cache->free_space_ctl); in btrfs_alloc_dummy_block_group()252 kfree(cache->free_space_ctl); in btrfs_free_dummy_block_group()
942 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in load_free_space_cache()1525 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_write_out_cache()2630 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_add_free_space()2699 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_add_free_space_zoned()2805 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space()2919 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_dump_free_space()2984 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_return_cluster_to_free_space()3037 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space_cache()3177 ctl = block_group->free_space_ctl; in btrfs_return_cluster_to_free_space()4194 struct btrfs_free_space_ctl *ctl = cache->free_space_ctl; in test_add_free_space_entry()[all …]
171 struct btrfs_free_space_ctl *free_space_ctl; member
3744 struct btrfs_free_space_ctl *free_space_ctl; in find_free_extent_unclustered() local3746 free_space_ctl = bg->free_space_ctl; in find_free_extent_unclustered()3747 spin_lock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()3748 if (free_space_ctl->free_space < in find_free_extent_unclustered()3753 free_space_ctl->free_space); in find_free_extent_unclustered()3754 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()3757 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()3813 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in do_allocation_zoned()
170 kfree(cache->free_space_ctl); in btrfs_put_block_group()458 (cache->free_space_ctl->free_space >= num_bytes))); in btrfs_wait_block_group_cache_progress()2272 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_create_block_group_cache()2274 if (!cache->free_space_ctl) { in btrfs_create_block_group_cache()2297 btrfs_init_free_space_ctl(cache, cache->free_space_ctl); in btrfs_create_block_group_cache()
659 ctl = block_group->free_space_ctl; in btrfs_discard_update_discardable()
1737 cache->free_space_ctl->free_space = free; in btrfs_calc_zone_unusable()2278 block_group->free_space_ctl->free_space = 0; in do_zone_finish()2788 bg->free_space_ctl->free_space += reclaimed; in btrfs_reset_unused_block_groups()