Home
last modified time | relevance | path

Searched refs:free_space_ctl (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/tests/
H A Dfree-space-tests.c85 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_extents()
152 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps()
233 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
269 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
294 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
320 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
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()
343 if (cache->free_space_ctl->total_bitmaps != num_bitmaps) { in check_num_extents_and_bitmaps()
346 cache->free_space_ctl in check_num_extents_and_bitmaps()
[all...]
H A Dbtrfs-tests.c212 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_alloc_dummy_block_group()
214 if (!cache->free_space_ctl) { in btrfs_alloc_dummy_block_group()
237 __btrfs_remove_free_space_cache(cache->free_space_ctl); in btrfs_free_dummy_block_group()
238 kfree(cache->free_space_ctl); in btrfs_free_dummy_block_group()
/kernel/linux/linux-6.6/fs/btrfs/tests/
H A Dfree-space-tests.c337 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()
343 if (cache->free_space_ctl->total_bitmaps != num_bitmaps) { 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()
419 * cache->free_space_ctl->extents_thresh, which currently is in test_steal_space_from_bitmap_to_extent()
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()
591 if (cache->free_space_ctl->free_space != (SZ_1M + sectorsize)) { in test_steal_space_from_bitmap_to_extent()
614 if (cache->free_space_ctl in test_steal_space_from_bitmap_to_extent()
[all...]
H A Dbtrfs-tests.c222 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_alloc_dummy_block_group()
224 if (!cache->free_space_ctl) { in btrfs_alloc_dummy_block_group()
237 btrfs_init_free_space_ctl(cache, cache->free_space_ctl); in btrfs_alloc_dummy_block_group()
248 kfree(cache->free_space_ctl); in btrfs_free_dummy_block_group()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dfree-space-cache.c848 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in load_free_space_cache()
1400 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_write_out_cache()
2541 block_group->free_space_ctl, in btrfs_add_free_space()
2560 block_group->free_space_ctl, in btrfs_add_free_space_async_trimmed()
2567 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space()
2661 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_dump_free_space()
2685 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_init_free_space_ctl()
2713 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_return_cluster_to_free_space()
2793 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space_cache()
2822 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_is_free_space_trimmed()
[all...]
H A Dblock-group.h109 struct btrfs_free_space_ctl *free_space_ctl; member
H A Dblock-group.c152 kfree(cache->free_space_ctl); in btrfs_put_block_group()
413 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress()
1802 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_create_block_group_cache()
1804 if (!cache->free_space_ctl) { in btrfs_create_block_group_cache()
3451 __btrfs_remove_free_space_cache(block_group->free_space_ctl); in btrfs_unfreeze_block_group()
H A Dextent-tree.c3674 struct btrfs_free_space_ctl *free_space_ctl; in find_free_extent_unclustered() local
3676 free_space_ctl = bg->free_space_ctl; in find_free_extent_unclustered()
3677 spin_lock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3678 if (free_space_ctl->free_space < in find_free_extent_unclustered()
3683 free_space_ctl->free_space); in find_free_extent_unclustered()
3684 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3687 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dfree-space-cache.c941 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in load_free_space_cache()
1520 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_write_out_cache()
2625 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_add_free_space()
2694 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_add_free_space_zoned()
2796 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space()
2910 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_dump_free_space()
2976 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_return_cluster_to_free_space()
3029 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space_cache()
3055 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_is_free_space_trimmed()
3082 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_find_space_for_alloc()
[all...]
H A Dblock-group.h156 struct btrfs_free_space_ctl *free_space_ctl; member
H A Dextent-tree.c3615 struct btrfs_free_space_ctl *free_space_ctl; in find_free_extent_unclustered() local
3617 free_space_ctl = bg->free_space_ctl; in find_free_extent_unclustered()
3618 spin_lock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3619 if (free_space_ctl->free_space < in find_free_extent_unclustered()
3624 free_space_ctl->free_space); in find_free_extent_unclustered()
3625 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3628 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3684 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in do_allocation_zoned()
H A Dblock-group.c170 kfree(cache->free_space_ctl); in btrfs_put_block_group()
460 (cache->free_space_ctl->free_space >= num_bytes))); in btrfs_wait_block_group_cache_progress()
2209 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_create_block_group_cache()
2211 if (!cache->free_space_ctl) { in btrfs_create_block_group_cache()
2234 btrfs_init_free_space_ctl(cache, cache->free_space_ctl); in btrfs_create_block_group_cache()
H A Ddiscard.c648 ctl = block_group->free_space_ctl; in btrfs_discard_update_discardable()
H A Dzoned.c1595 cache->free_space_ctl->free_space = free; in btrfs_calc_zone_unusable()
2147 block_group->free_space_ctl->free_space = 0; in do_zone_finish()

Completed in 41 milliseconds