Home
last modified time | relevance | path

Searched refs:free_space_ctl (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/kernel/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->total_bitmaps, num_bitmaps); 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()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dfree-space-cache.c847 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in load_free_space_cache()
1399 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_write_out_cache()
2540 block_group->free_space_ctl, in btrfs_add_free_space()
2559 block_group->free_space_ctl, in btrfs_add_free_space_async_trimmed()
2566 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space()
2660 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_dump_free_space()
2684 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_init_free_space_ctl()
2712 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_return_cluster_to_free_space()
2792 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space_cache()
2821 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.c145 kfree(cache->free_space_ctl); in btrfs_put_block_group()
406 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress()
1795 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_create_block_group_cache()
1797 if (!cache->free_space_ctl) { in btrfs_create_block_group_cache()
3434 __btrfs_remove_free_space_cache(block_group->free_space_ctl); in btrfs_unfreeze_block_group()
H A Dextent-tree.c3665 struct btrfs_free_space_ctl *free_space_ctl; in find_free_extent_unclustered() local
3667 free_space_ctl = bg->free_space_ctl; in find_free_extent_unclustered()
3668 spin_lock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3669 if (free_space_ctl->free_space < in find_free_extent_unclustered()
3674 free_space_ctl->free_space); in find_free_extent_unclustered()
3675 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3678 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()