Lines Matching refs:extent_root
102 struct btrfs_root *extent_root, u64 flags,
384 struct btrfs_root *extent_root; in caching_thread() local
396 extent_root = fs_info->extent_root; in caching_thread()
423 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in caching_thread()
453 ret = btrfs_next_leaf(extent_root, path); in caching_thread()
516 free_excluded_extents(extent_root, block_group); in caching_thread()
616 free_excluded_extents(fs_info->extent_root, cache); in cache_block_group()
728 ret = btrfs_search_slot(NULL, root->fs_info->extent_root, &key, path, in btrfs_lookup_data_extent()
784 ret = btrfs_search_slot(trans, root->fs_info->extent_root, in btrfs_lookup_extent_info()
1995 ret = insert_inline_extent_backref(trans, fs_info->extent_root, path, in __btrfs_inc_extent_ref()
2048 ret = insert_extent_backref(trans, root->fs_info->extent_root, in __btrfs_inc_extent_ref()
2162 ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, in run_delayed_extent_op()
2198 ret = convert_extent_item_v0(trans, root->fs_info->extent_root, in run_delayed_extent_op()
2808 if (root == root->fs_info->extent_root) in btrfs_run_delayed_refs()
2971 struct btrfs_root *extent_root = root->fs_info->extent_root; in check_committed_ref() local
2984 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in check_committed_ref()
3166 struct btrfs_root *extent_root = root->fs_info->extent_root; in write_one_cache_group() local
3170 ret = btrfs_search_slot(trans, extent_root, &cache->key, path, 0, 1); in write_one_cache_group()
3943 ret = do_chunk_alloc(trans, root->fs_info->extent_root, in btrfs_check_data_free_space()
4144 struct btrfs_root *extent_root, u64 flags, int force) in do_chunk_alloc() argument
4147 struct btrfs_fs_info *fs_info = extent_root->fs_info; in do_chunk_alloc()
4155 space_info = __find_space_info(extent_root->fs_info, flags); in do_chunk_alloc()
4157 ret = update_space_info(extent_root->fs_info, flags, in do_chunk_alloc()
4168 if (should_alloc_chunk(extent_root, space_info, force)) in do_chunk_alloc()
4176 if (!should_alloc_chunk(extent_root, space_info, force)) { in do_chunk_alloc()
4226 check_system_chunk(trans, extent_root, flags); in do_chunk_alloc()
4228 ret = btrfs_alloc_chunk(trans, extent_root, flags); in do_chunk_alloc()
4517 ret = do_chunk_alloc(trans, root->fs_info->extent_root, in flush_space()
5102 return ALIGN(num_bytes, fs_info->extent_root->nodesize << 10); in calc_global_metadata_size()
5157 fs_info->extent_root->block_rsv = &fs_info->global_block_rsv; in init_global_block_rsv()
6110 struct btrfs_root *extent_root = info->extent_root; in __btrfs_free_extent() local
6142 ret = lookup_extent_backref(trans, extent_root, path, &iref, in __btrfs_free_extent()
6174 ret = remove_extent_backref(trans, extent_root, path, in __btrfs_free_extent()
6178 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6193 ret = btrfs_search_slot(trans, extent_root, in __btrfs_free_extent()
6215 ret = btrfs_search_slot(trans, extent_root, in __btrfs_free_extent()
6223 btrfs_print_leaf(extent_root, in __btrfs_free_extent()
6227 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6233 btrfs_print_leaf(extent_root, path->nodes[0]); in __btrfs_free_extent()
6238 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6241 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6250 ret = convert_extent_item_v0(trans, extent_root, path, in __btrfs_free_extent()
6253 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6264 ret = btrfs_search_slot(trans, extent_root, &key, path, in __btrfs_free_extent()
6269 btrfs_print_leaf(extent_root, path->nodes[0]); in __btrfs_free_extent()
6272 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6297 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6317 ret = remove_extent_backref(trans, extent_root, path, in __btrfs_free_extent()
6321 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6341 ret = btrfs_del_items(trans, extent_root, path, path->slots[0], in __btrfs_free_extent()
6344 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6352 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6359 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6725 struct btrfs_root *root = orig_root->fs_info->extent_root; in find_free_extent()
7278 ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, in alloc_reserved_file_extent()
7359 ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, in alloc_reserved_tree_block()
9199 free_excluded_extents(info->extent_root, block_group); in btrfs_free_block_groups()
9335 root = info->extent_root; in btrfs_read_block_groups()
9504 struct btrfs_root *extent_root = root->fs_info->extent_root; in btrfs_create_pending_block_groups() local
9518 ret = btrfs_insert_item(trans, extent_root, &key, &item, in btrfs_create_pending_block_groups()
9521 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_create_pending_block_groups()
9522 ret = btrfs_finish_chunk_alloc(trans, extent_root, in btrfs_create_pending_block_groups()
9525 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_create_pending_block_groups()
9537 struct btrfs_root *extent_root; in btrfs_make_block_group() local
9540 extent_root = root->fs_info->extent_root; in btrfs_make_block_group()
9600 set_avail_alloc_bits(extent_root->fs_info, type); in btrfs_make_block_group()
9637 root = root->fs_info->extent_root; in btrfs_remove_block_group()
9918 struct btrfs_root *root = fs_info->extent_root; in btrfs_delete_unused_bgs()