Lines Matching refs:btrfs_free_space_ctl

37 static int link_free_space(struct btrfs_free_space_ctl *ctl,
39 static void unlink_free_space(struct btrfs_free_space_ctl *ctl,
41 static int search_bitmap(struct btrfs_free_space_ctl *ctl,
44 static void free_bitmap(struct btrfs_free_space_ctl *ctl,
46 static void bitmap_clear_bits(struct btrfs_free_space_ctl *ctl,
667 static void recalculate_thresholds(struct btrfs_free_space_ctl *ctl) in recalculate_thresholds()
706 struct btrfs_free_space_ctl *ctl, in __load_free_space_cache()
866 struct btrfs_free_space_ctl *ctl) in copy_free_space_cache()
903 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in load_free_space_cache()
904 struct btrfs_free_space_ctl tmp_ctl = {}; in load_free_space_cache()
1015 struct btrfs_free_space_ctl *ctl, in write_cache_extent_entries()
1324 struct btrfs_free_space_ctl *ctl, in __btrfs_write_out_cache()
1467 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_write_out_cache()
1517 static inline u64 offset_to_bitmap(struct btrfs_free_space_ctl *ctl, in offset_to_bitmap()
1591 tree_search_offset(struct btrfs_free_space_ctl *ctl, in tree_search_offset()
1707 __unlink_free_space(struct btrfs_free_space_ctl *ctl, in __unlink_free_space()
1719 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, in unlink_free_space()
1726 static int link_free_space(struct btrfs_free_space_ctl *ctl, in link_free_space()
1747 static inline void __bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, in __bitmap_clear_bits()
1778 static void bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, in bitmap_clear_bits()
1786 static void bitmap_set_bits(struct btrfs_free_space_ctl *ctl, in bitmap_set_bits()
1820 static int search_bitmap(struct btrfs_free_space_ctl *ctl, in search_bitmap()
1882 find_free_space(struct btrfs_free_space_ctl *ctl, u64 *offset, u64 *bytes, in find_free_space()
1949 static void add_new_bitmap(struct btrfs_free_space_ctl *ctl, in add_new_bitmap()
1961 static void free_bitmap(struct btrfs_free_space_ctl *ctl, in free_bitmap()
1983 static noinline int remove_from_bitmap(struct btrfs_free_space_ctl *ctl, in remove_from_bitmap()
2060 static u64 add_bytes_to_bitmap(struct btrfs_free_space_ctl *ctl, in add_bytes_to_bitmap()
2096 static bool use_bitmap(struct btrfs_free_space_ctl *ctl, in use_bitmap()
2150 static int insert_into_bitmap(struct btrfs_free_space_ctl *ctl, in insert_into_bitmap()
2288 static bool try_merge_free_space(struct btrfs_free_space_ctl *ctl, in try_merge_free_space()
2339 static bool steal_from_bitmap_to_end(struct btrfs_free_space_ctl *ctl, in steal_from_bitmap_to_end()
2376 static bool steal_from_bitmap_to_front(struct btrfs_free_space_ctl *ctl, in steal_from_bitmap_to_front()
2444 static void steal_from_bitmap(struct btrfs_free_space_ctl *ctl, in steal_from_bitmap()
2470 struct btrfs_free_space_ctl *ctl, in __btrfs_add_free_space()
2542 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_add_free_space_zoned()
2646 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space()
2760 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_dump_free_space()
2793 struct btrfs_free_space_ctl *ctl) in btrfs_init_free_space_ctl()
2823 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in __btrfs_return_cluster_to_free_space()
2874 struct btrfs_free_space_ctl *ctl) in __btrfs_remove_free_space_cache_locked()
2892 void __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl) in __btrfs_remove_free_space_cache()
2903 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_remove_free_space_cache()
2932 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_is_free_space_trimmed()
2959 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_find_space_for_alloc()
3027 struct btrfs_free_space_ctl *ctl; in btrfs_return_cluster_to_free_space()
3064 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_alloc_from_bitmap()
3095 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_alloc_from_cluster()
3196 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_bitmap_cluster()
3277 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in setup_cluster_no_bitmap()
3368 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in setup_cluster_bitmap()
3418 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_find_space_cluster()
3512 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in do_trimming()
3571 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in trim_no_bitmap()
3699 static void reset_trimming_bitmap(struct btrfs_free_space_ctl *ctl, u64 offset) in reset_trimming_bitmap()
3717 static void end_trimming_bitmap(struct btrfs_free_space_ctl *ctl, in end_trimming_bitmap()
3737 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in trim_bitmaps()
3878 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; in btrfs_trim_block_group()
4024 struct btrfs_free_space_ctl *ctl = cache->free_space_ctl; in test_add_free_space_entry()
4094 struct btrfs_free_space_ctl *ctl = cache->free_space_ctl; in test_check_exists()