H A D | free-space-cache.c | 34 static int link_free_space(struct btrfs_free_space_ctl *ctl, 36 static void unlink_free_space(struct btrfs_free_space_ctl *ctl, 609 static void merge_space_tree(struct btrfs_free_space_ctl *ctl) argument 615 spin_lock(&ctl->tree_lock); 616 for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { 623 unlink_free_space(ctl, prev); 624 unlink_free_space(ctl, e); 627 link_free_space(ctl, prev); 629 spin_unlock(&ctl->tree_lock); 635 spin_unlock(&ctl 638 __load_free_space_cache(struct btrfs_root *root, struct inode *inode, struct btrfs_free_space_ctl *ctl, struct btrfs_path *path, u64 offset) argument 801 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 875 write_cache_extent_entries(struct io_ctl *io_ctl, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group_cache *block_group, int *entries, int *bitmaps, struct list_head *bitmap_list) argument 1096 __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group_cache *block_group, struct btrfs_trans_handle *trans, struct btrfs_path *path, u64 offset) argument 1210 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 1264 offset_to_bitmap(struct btrfs_free_space_ctl *ctl, u64 offset) argument 1338 tree_search_offset(struct btrfs_free_space_ctl *ctl, u64 offset, int bitmap_only, int fuzzy) argument 1454 __unlink_free_space(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info) argument 1461 unlink_free_space(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info) argument 1468 link_free_space(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info) argument 1484 recalculate_thresholds(struct btrfs_free_space_ctl *ctl) argument 1532 __bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes) argument 1547 bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes) argument 1555 bitmap_set_bits(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes) argument 1575 search_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *bitmap_info, u64 *offset, u64 *bytes) argument 1614 find_free_space(struct btrfs_free_space_ctl *ctl, u64 *offset, u64 *bytes, unsigned long align, u64 *max_extent_size) argument 1679 add_new_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset) argument 1691 free_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *bitmap_info) argument 1701 remove_from_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *bitmap_info, u64 *offset, u64 *bytes) argument 1777 add_bytes_to_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes) argument 1794 use_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info) argument 1838 insert_into_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info) argument 1954 try_merge_free_space(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, bool update_stat) argument 2000 steal_from_bitmap_to_end(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, bool update_stat) argument 2033 steal_from_bitmap_to_front(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, bool update_stat) argument 2097 steal_from_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, bool update_stat) argument 2122 __btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, u64 offset, u64 bytes) argument 2179 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2269 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2291 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2319 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2356 __btrfs_remove_free_space_cache_locked( struct btrfs_free_space_ctl *ctl) argument 2378 __btrfs_remove_free_space_cache(struct btrfs_free_space_ctl *ctl) argument 2387 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2414 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2466 struct btrfs_free_space_ctl *ctl; local 2503 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2534 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2620 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2687 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2778 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2826 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 2956 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 3029 struct btrfs_free_space_ctl *ctl = block_group->free_space_ctl; local 3122 struct btrfs_free_space_ctl *ctl = fs_root->free_ino_ctl; local 3198 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; local 3243 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; local 3272 struct btrfs_free_space_ctl *ctl = cache->free_space_ctl; local 3338 struct btrfs_free_space_ctl *ctl = cache->free_space_ctl; local [all...] |