• Home
  • Raw
  • Download

Lines Matching refs:extent_root

86 			  struct btrfs_root *extent_root, u64 flags,
399 struct btrfs_root *extent_root; in load_extent_tree_free() local
411 extent_root = fs_info->extent_root; in load_extent_tree_free()
425 if (btrfs_should_fragment_free_space(extent_root, block_group)) in load_extent_tree_free()
443 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in load_extent_tree_free()
476 ret = btrfs_next_leaf(extent_root, path); in load_extent_tree_free()
542 struct btrfs_root *extent_root; in caching_thread() local
548 extent_root = fs_info->extent_root; in caching_thread()
564 if (btrfs_should_fragment_free_space(extent_root, block_group)) { in caching_thread()
574 fragment_free_space(extent_root, block_group); in caching_thread()
581 free_excluded_extents(fs_info->extent_root, block_group); in caching_thread()
671 btrfs_should_fragment_free_space(fs_info->extent_root, in cache_block_group()
682 fragment_free_space(fs_info->extent_root, cache); in cache_block_group()
690 free_excluded_extents(fs_info->extent_root, cache); in cache_block_group()
794 ret = btrfs_search_slot(NULL, root->fs_info->extent_root, &key, path, in btrfs_lookup_data_extent()
850 ret = btrfs_search_slot(trans, root->fs_info->extent_root, in btrfs_lookup_extent_info()
2131 ret = insert_inline_extent_backref(trans, fs_info->extent_root, path, in __btrfs_inc_extent_ref()
2157 ret = insert_extent_backref(trans, root->fs_info->extent_root, in __btrfs_inc_extent_ref()
2269 ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, in run_delayed_extent_op()
2305 ret = convert_extent_item_v0(trans, root->fs_info->extent_root, in run_delayed_extent_op()
2953 if (root == root->fs_info->extent_root) in btrfs_run_delayed_refs()
3109 struct btrfs_root *extent_root = root->fs_info->extent_root; in check_committed_ref() local
3122 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in check_committed_ref()
3303 struct btrfs_root *extent_root = root->fs_info->extent_root; in write_one_cache_group() local
3307 ret = btrfs_search_slot(trans, extent_root, &cache->key, path, 0, 1); in write_one_cache_group()
4188 ret = do_chunk_alloc(trans, root->fs_info->extent_root, in btrfs_alloc_data_chunk_ondemand()
4476 struct btrfs_root *extent_root, u64 flags, int force) in do_chunk_alloc() argument
4479 struct btrfs_fs_info *fs_info = extent_root->fs_info; in do_chunk_alloc()
4487 space_info = __find_space_info(extent_root->fs_info, flags); in do_chunk_alloc()
4489 ret = update_space_info(extent_root->fs_info, flags, in do_chunk_alloc()
4500 if (should_alloc_chunk(extent_root, space_info, force)) in do_chunk_alloc()
4508 if (!should_alloc_chunk(extent_root, space_info, force)) { in do_chunk_alloc()
4558 check_system_chunk(trans, extent_root, flags); in do_chunk_alloc()
4560 ret = btrfs_alloc_chunk(trans, extent_root, flags); in do_chunk_alloc()
4592 btrfs_create_pending_block_groups(trans, extent_root); in do_chunk_alloc()
4877 ret = do_chunk_alloc(trans, root->fs_info->extent_root, in flush_space()
5381 !can_overcommit(fs_info->extent_root, space_info, 0, in space_info_add_old_bytes()
5629 num_bytes = btrfs_root_used(&fs_info->extent_root->root_item) + in update_global_block_rsv()
5684 fs_info->extent_root->block_rsv = &fs_info->global_block_rsv; in init_global_block_rsv()
6828 struct btrfs_root *extent_root = info->extent_root; in __btrfs_free_extent() local
6858 ret = lookup_extent_backref(trans, extent_root, path, &iref, in __btrfs_free_extent()
6890 ret = remove_extent_backref(trans, extent_root, path, in __btrfs_free_extent()
6909 ret = btrfs_search_slot(trans, extent_root, in __btrfs_free_extent()
6931 ret = btrfs_search_slot(trans, extent_root, in __btrfs_free_extent()
6940 btrfs_print_leaf(extent_root, in __btrfs_free_extent()
6950 btrfs_print_leaf(extent_root, path->nodes[0]); in __btrfs_free_extent()
6967 ret = convert_extent_item_v0(trans, extent_root, path, in __btrfs_free_extent()
6981 ret = btrfs_search_slot(trans, extent_root, &key, path, in __btrfs_free_extent()
6987 btrfs_print_leaf(extent_root, path->nodes[0]); in __btrfs_free_extent()
7035 ret = remove_extent_backref(trans, extent_root, path, in __btrfs_free_extent()
7059 ret = btrfs_del_items(trans, extent_root, path, path->slots[0], in __btrfs_free_extent()
7438 struct btrfs_root *root = orig_root->fs_info->extent_root; in find_free_extent()
8059 ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, in alloc_reserved_file_extent()
8137 ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, in alloc_reserved_tree_block()
10008 free_excluded_extents(info->extent_root, block_group); in btrfs_free_block_groups()
10159 root = info->extent_root; in btrfs_read_block_groups()
10335 struct btrfs_root *extent_root = root->fs_info->extent_root; in btrfs_create_pending_block_groups() local
10351 ret = btrfs_insert_item(trans, extent_root, &key, &item, in btrfs_create_pending_block_groups()
10355 ret = btrfs_finish_chunk_alloc(trans, extent_root, in btrfs_create_pending_block_groups()
10373 struct btrfs_root *extent_root; in btrfs_make_block_group() local
10375 extent_root = root->fs_info->extent_root; in btrfs_make_block_group()
10458 set_avail_alloc_bits(extent_root->fs_info, type); in btrfs_make_block_group()
10494 root = root->fs_info->extent_root; in btrfs_remove_block_group()
10813 return btrfs_start_transaction_fallback_global_rsv(fs_info->extent_root, in btrfs_start_trans_remove_block_group()
10825 struct btrfs_root *root = fs_info->extent_root; in btrfs_delete_unused_bgs()