Lines Matching refs:btrfs_free_space
31 struct btrfs_free_space *info);
33 struct btrfs_free_space *info);
571 struct btrfs_free_space *entry, u8 *type) in io_ctl_read_entry()
598 struct btrfs_free_space *entry) in io_ctl_read_bitmap()
623 struct btrfs_free_space *e, *prev = NULL; in merge_space_tree()
629 e = rb_entry(n, struct btrfs_free_space, offset_index); in merge_space_tree()
659 struct btrfs_free_space *e, *n; in __load_free_space_cache()
912 struct btrfs_free_space *e; in write_cache_extent_entries()
914 e = rb_entry(node, struct btrfs_free_space, offset_index); in write_cache_extent_entries()
1069 struct btrfs_free_space *entry, *next; in write_bitmap_entries()
1098 struct btrfs_free_space *entry, *next; in cleanup_bitmap_list()
1422 struct btrfs_free_space *info; in tree_insert_offset()
1426 info = rb_entry(parent, struct btrfs_free_space, offset_index); in tree_insert_offset()
1475 static struct btrfs_free_space *
1480 struct btrfs_free_space *entry, *prev = NULL; in tree_search_offset()
1489 entry = rb_entry(n, struct btrfs_free_space, offset_index); in tree_search_offset()
1513 entry = rb_entry(n, struct btrfs_free_space, offset_index); in tree_search_offset()
1527 prev = rb_entry(n, struct btrfs_free_space, in tree_search_offset()
1545 entry = rb_entry(n, struct btrfs_free_space, in tree_search_offset()
1559 prev = rb_entry(n, struct btrfs_free_space, in tree_search_offset()
1586 entry = rb_entry(n, struct btrfs_free_space, offset_index); in tree_search_offset()
1593 struct btrfs_free_space *info) in __unlink_free_space()
1600 struct btrfs_free_space *info) in unlink_free_space()
1607 struct btrfs_free_space *info) in link_free_space()
1666 div_u64(extent_bytes, sizeof(struct btrfs_free_space)); in recalculate_thresholds()
1670 struct btrfs_free_space *info, in __bitmap_clear_bits()
1685 struct btrfs_free_space *info, u64 offset, in bitmap_clear_bits()
1693 struct btrfs_free_space *info, u64 offset, in bitmap_set_bits()
1713 struct btrfs_free_space *bitmap_info, u64 *offset, in search_bitmap()
1766 static struct btrfs_free_space *
1770 struct btrfs_free_space *entry; in find_free_space()
1784 entry = rb_entry(node, struct btrfs_free_space, offset_index); in find_free_space()
1833 struct btrfs_free_space *info, u64 offset) in add_new_bitmap()
1845 struct btrfs_free_space *bitmap_info) in free_bitmap()
1855 struct btrfs_free_space *bitmap_info, in remove_from_bitmap()
1901 bitmap_info = rb_entry(next, struct btrfs_free_space, in remove_from_bitmap()
1932 struct btrfs_free_space *info, u64 offset, in add_bytes_to_bitmap()
1955 struct btrfs_free_space *info) in use_bitmap()
2006 struct btrfs_free_space *info) in insert_into_bitmap()
2008 struct btrfs_free_space *bitmap_info; in insert_into_bitmap()
2031 struct btrfs_free_space *entry; in insert_into_bitmap()
2043 entry = rb_entry(node, struct btrfs_free_space, offset_index); in insert_into_bitmap()
2122 struct btrfs_free_space *info, bool update_stat) in try_merge_free_space()
2124 struct btrfs_free_space *left_info; in try_merge_free_space()
2125 struct btrfs_free_space *right_info; in try_merge_free_space()
2138 struct btrfs_free_space, offset_index); in try_merge_free_space()
2168 struct btrfs_free_space *info, in steal_from_bitmap_to_end()
2171 struct btrfs_free_space *bitmap; in steal_from_bitmap_to_end()
2201 struct btrfs_free_space *info, in steal_from_bitmap_to_front()
2204 struct btrfs_free_space *bitmap; in steal_from_bitmap_to_front()
2265 struct btrfs_free_space *info, in steal_from_bitmap()
2293 struct btrfs_free_space *info; in __btrfs_add_free_space()
2348 struct btrfs_free_space *info; in btrfs_remove_free_space()
2439 struct btrfs_free_space *info; in btrfs_dump_free_space()
2444 info = rb_entry(n, struct btrfs_free_space, offset_index); in btrfs_dump_free_space()
2475 ctl->extents_thresh = (SZ_32K / 2) / sizeof(struct btrfs_free_space); in btrfs_init_free_space_ctl()
2490 struct btrfs_free_space *entry; in __btrfs_return_cluster_to_free_space()
2505 entry = rb_entry(node, struct btrfs_free_space, offset_index); in __btrfs_return_cluster_to_free_space()
2529 struct btrfs_free_space *info; in __btrfs_remove_free_space_cache_locked()
2533 info = rb_entry(node, struct btrfs_free_space, offset_index); in __btrfs_remove_free_space_cache_locked()
2579 struct btrfs_free_space *entry = NULL; in btrfs_find_space_for_alloc()
2664 struct btrfs_free_space *entry, in btrfs_alloc_from_bitmap()
2700 struct btrfs_free_space *entry = NULL; in btrfs_alloc_from_cluster()
2715 entry = rb_entry(node, struct btrfs_free_space, offset_index); in btrfs_alloc_from_cluster()
2725 entry = rb_entry(node, struct btrfs_free_space, in btrfs_alloc_from_cluster()
2739 entry = rb_entry(node, struct btrfs_free_space, in btrfs_alloc_from_cluster()
2780 struct btrfs_free_space *entry, in btrfs_bitmap_cluster()
2867 struct btrfs_free_space *first = NULL; in setup_cluster_no_bitmap()
2868 struct btrfs_free_space *entry = NULL; in setup_cluster_no_bitmap()
2869 struct btrfs_free_space *last; in setup_cluster_no_bitmap()
2889 entry = rb_entry(node, struct btrfs_free_space, offset_index); in setup_cluster_no_bitmap()
2899 entry = rb_entry(node, struct btrfs_free_space, offset_index); in setup_cluster_no_bitmap()
2930 entry = rb_entry(node, struct btrfs_free_space, offset_index); in setup_cluster_no_bitmap()
2958 struct btrfs_free_space *entry = NULL; in setup_cluster_bitmap()
2970 entry = list_first_entry(bitmaps, struct btrfs_free_space, list); in setup_cluster_bitmap()
3008 struct btrfs_free_space *entry, *tmp; in btrfs_find_space_cluster()
3142 struct btrfs_free_space *entry; in trim_no_bitmap()
3176 entry = rb_entry(node, struct btrfs_free_space, in trim_no_bitmap()
3227 struct btrfs_free_space *entry; in trim_bitmaps()
3383 struct btrfs_free_space *entry = NULL; in btrfs_find_ino_for_alloc()
3392 struct btrfs_free_space, offset_index); in btrfs_find_ino_for_alloc()
3550 struct btrfs_free_space *info = NULL, *bitmap_info; in test_add_free_space_entry()
3618 struct btrfs_free_space *info; in test_check_exists()
3634 struct btrfs_free_space *tmp; in test_check_exists()
3652 tmp = rb_entry(n, struct btrfs_free_space, in test_check_exists()
3666 tmp = rb_entry(n, struct btrfs_free_space, in test_check_exists()