Home
last modified time | relevance | path

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

/fs/btrfs/tests/
Dfree-space-tests.c85 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_extents()
153 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps()
234 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
270 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
295 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
321 __btrfs_remove_free_space_cache(cache->free_space_ctl); in test_bitmaps_and_extents()
338 if (cache->free_space_ctl->free_extents != num_extents) { in check_num_extents_and_bitmaps()
341 cache->free_space_ctl->free_extents, num_extents); in check_num_extents_and_bitmaps()
344 if (cache->free_space_ctl->total_bitmaps != num_bitmaps) { in check_num_extents_and_bitmaps()
347 cache->free_space_ctl->total_bitmaps, num_bitmaps); in check_num_extents_and_bitmaps()
[all …]
Dbtrfs-tests.c213 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_alloc_dummy_block_group()
215 if (!cache->free_space_ctl) { in btrfs_alloc_dummy_block_group()
239 __btrfs_remove_free_space_cache(cache->free_space_ctl); in btrfs_free_dummy_block_group()
240 kfree(cache->free_space_ctl); in btrfs_free_dummy_block_group()
/fs/btrfs/
Dfree-space-cache.c831 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in load_free_space_cache()
1387 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_write_out_cache()
2398 block_group->free_space_ctl, in btrfs_add_free_space()
2405 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space()
2496 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_dump_free_space()
2520 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_init_free_space_ctl()
2549 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_return_cluster_to_free_space()
2614 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space_cache()
2638 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_find_space_for_alloc()
2710 ctl = block_group->free_space_ctl; in btrfs_return_cluster_to_free_space()
[all …]
Dblock-group.h95 struct btrfs_free_space_ctl *free_space_ctl; member
Dblock-group.c143 kfree(cache->free_space_ctl); in btrfs_put_block_group()
405 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress()
1627 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_create_block_group_cache()
1629 if (!cache->free_space_ctl) { in btrfs_create_block_group_cache()
Dextent-tree.c3636 struct btrfs_free_space_ctl *free_space_ctl; in find_free_extent_unclustered() local
3638 free_space_ctl = bg->free_space_ctl; in find_free_extent_unclustered()
3639 spin_lock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3640 if (free_space_ctl->free_space < in find_free_extent_unclustered()
3645 free_space_ctl->free_space); in find_free_extent_unclustered()
3646 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()
3649 spin_unlock(&free_space_ctl->tree_lock); in find_free_extent_unclustered()