Lines Matching refs:btrfs_free_space
32 struct btrfs_free_space *info);
34 struct btrfs_free_space *info);
586 struct btrfs_free_space *entry, u8 *type) in io_ctl_read_entry()
613 struct btrfs_free_space *entry) in io_ctl_read_bitmap()
638 struct btrfs_free_space *e, *prev = NULL; in merge_space_tree()
644 e = rb_entry(n, struct btrfs_free_space, offset_index); in merge_space_tree()
674 struct btrfs_free_space *e, *n; in __load_free_space_cache()
952 struct btrfs_free_space *e; in write_cache_extent_entries()
954 e = rb_entry(node, struct btrfs_free_space, offset_index); in write_cache_extent_entries()
1109 struct btrfs_free_space *entry, *next; in write_bitmap_entries()
1138 struct btrfs_free_space *entry, *next; in cleanup_bitmap_list()
1462 struct btrfs_free_space *info; in tree_insert_offset()
1466 info = rb_entry(parent, struct btrfs_free_space, offset_index); in tree_insert_offset()
1515 static struct btrfs_free_space *
1520 struct btrfs_free_space *entry, *prev = NULL; in tree_search_offset()
1529 entry = rb_entry(n, struct btrfs_free_space, offset_index); in tree_search_offset()
1553 entry = rb_entry(n, struct btrfs_free_space, offset_index); in tree_search_offset()
1567 prev = rb_entry(n, struct btrfs_free_space, in tree_search_offset()
1585 entry = rb_entry(n, struct btrfs_free_space, in tree_search_offset()
1599 prev = rb_entry(n, struct btrfs_free_space, in tree_search_offset()
1626 entry = rb_entry(n, struct btrfs_free_space, offset_index); in tree_search_offset()
1633 struct btrfs_free_space *info) in __unlink_free_space()
1640 struct btrfs_free_space *info) in unlink_free_space()
1647 struct btrfs_free_space *info) in link_free_space()
1706 div_u64(extent_bytes, sizeof(struct btrfs_free_space)); in recalculate_thresholds()
1710 struct btrfs_free_space *info, in __bitmap_clear_bits()
1727 struct btrfs_free_space *info, u64 offset, in bitmap_clear_bits()
1735 struct btrfs_free_space *info, u64 offset, in bitmap_set_bits()
1755 struct btrfs_free_space *bitmap_info, u64 *offset, in search_bitmap()
1807 static inline u64 get_max_extent_size(struct btrfs_free_space *entry) in get_max_extent_size()
1815 static struct btrfs_free_space *
1819 struct btrfs_free_space *entry; in find_free_space()
1833 entry = rb_entry(node, struct btrfs_free_space, offset_index); in find_free_space()
1884 struct btrfs_free_space *info, u64 offset) in add_new_bitmap()
1896 struct btrfs_free_space *bitmap_info) in free_bitmap()
1906 struct btrfs_free_space *bitmap_info, in remove_from_bitmap()
1952 bitmap_info = rb_entry(next, struct btrfs_free_space, in remove_from_bitmap()
1983 struct btrfs_free_space *info, u64 offset, in add_bytes_to_bitmap()
2006 struct btrfs_free_space *info) in use_bitmap()
2057 struct btrfs_free_space *info) in insert_into_bitmap()
2059 struct btrfs_free_space *bitmap_info; in insert_into_bitmap()
2082 struct btrfs_free_space *entry; in insert_into_bitmap()
2094 entry = rb_entry(node, struct btrfs_free_space, offset_index); in insert_into_bitmap()
2175 struct btrfs_free_space *info, bool update_stat) in try_merge_free_space()
2177 struct btrfs_free_space *left_info = NULL; in try_merge_free_space()
2178 struct btrfs_free_space *right_info; in try_merge_free_space()
2191 struct btrfs_free_space, offset_index); in try_merge_free_space()
2221 struct btrfs_free_space *info, in steal_from_bitmap_to_end()
2224 struct btrfs_free_space *bitmap; in steal_from_bitmap_to_end()
2254 struct btrfs_free_space *info, in steal_from_bitmap_to_front()
2257 struct btrfs_free_space *bitmap; in steal_from_bitmap_to_front()
2318 struct btrfs_free_space *info, in steal_from_bitmap()
2346 struct btrfs_free_space *info; in __btrfs_add_free_space()
2401 struct btrfs_free_space *info; in btrfs_remove_free_space()
2492 struct btrfs_free_space *info; in btrfs_dump_free_space()
2498 info = rb_entry(n, struct btrfs_free_space, offset_index); in btrfs_dump_free_space()
2530 ctl->extents_thresh = (SZ_32K / 2) / sizeof(struct btrfs_free_space); in btrfs_init_free_space_ctl()
2545 struct btrfs_free_space *entry; in __btrfs_return_cluster_to_free_space()
2560 entry = rb_entry(node, struct btrfs_free_space, offset_index); in __btrfs_return_cluster_to_free_space()
2584 struct btrfs_free_space *info; in __btrfs_remove_free_space_cache_locked()
2588 info = rb_entry(node, struct btrfs_free_space, offset_index); in __btrfs_remove_free_space_cache_locked()
2634 struct btrfs_free_space *entry = NULL; in btrfs_find_space_for_alloc()
2719 struct btrfs_free_space *entry, in btrfs_alloc_from_bitmap()
2755 struct btrfs_free_space *entry = NULL; in btrfs_alloc_from_cluster()
2770 entry = rb_entry(node, struct btrfs_free_space, offset_index); in btrfs_alloc_from_cluster()
2781 entry = rb_entry(node, struct btrfs_free_space, in btrfs_alloc_from_cluster()
2795 entry = rb_entry(node, struct btrfs_free_space, in btrfs_alloc_from_cluster()
2837 struct btrfs_free_space *entry, in btrfs_bitmap_cluster()
2924 struct btrfs_free_space *first = NULL; in setup_cluster_no_bitmap()
2925 struct btrfs_free_space *entry = NULL; in setup_cluster_no_bitmap()
2926 struct btrfs_free_space *last; in setup_cluster_no_bitmap()
2946 entry = rb_entry(node, struct btrfs_free_space, offset_index); in setup_cluster_no_bitmap()
2956 entry = rb_entry(node, struct btrfs_free_space, offset_index); in setup_cluster_no_bitmap()
2987 entry = rb_entry(node, struct btrfs_free_space, offset_index); in setup_cluster_no_bitmap()
3015 struct btrfs_free_space *entry = NULL; in setup_cluster_bitmap()
3027 entry = list_first_entry(bitmaps, struct btrfs_free_space, list); in setup_cluster_bitmap()
3065 struct btrfs_free_space *entry, *tmp; in btrfs_find_space_cluster()
3199 struct btrfs_free_space *entry; in trim_no_bitmap()
3233 entry = rb_entry(node, struct btrfs_free_space, in trim_no_bitmap()
3284 struct btrfs_free_space *entry; in trim_bitmaps()
3440 struct btrfs_free_space *entry = NULL; in btrfs_find_ino_for_alloc()
3449 struct btrfs_free_space, offset_index); in btrfs_find_ino_for_alloc()
3607 struct btrfs_free_space *info = NULL, *bitmap_info; in test_add_free_space_entry()
3675 struct btrfs_free_space *info; in test_check_exists()
3691 struct btrfs_free_space *tmp; in test_check_exists()
3709 tmp = rb_entry(n, struct btrfs_free_space, in test_check_exists()
3723 tmp = rb_entry(n, struct btrfs_free_space, in test_check_exists()