Lines Matching refs:extent_root

100 			  struct btrfs_root *extent_root, u64 flags,
403 struct btrfs_root *extent_root; in caching_thread() local
416 extent_root = fs_info->extent_root; in caching_thread()
430 if (btrfs_should_fragment_free_space(extent_root, block_group)) in caching_thread()
452 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in caching_thread()
483 ret = btrfs_next_leaf(extent_root, path); in caching_thread()
543 if (btrfs_should_fragment_free_space(extent_root, block_group)) { in caching_thread()
553 fragment_free_space(extent_root, block_group); in caching_thread()
562 free_excluded_extents(extent_root, block_group); in caching_thread()
659 btrfs_should_fragment_free_space(fs_info->extent_root, in cache_block_group()
670 fragment_free_space(fs_info->extent_root, cache); in cache_block_group()
678 free_excluded_extents(fs_info->extent_root, cache); in cache_block_group()
790 ret = btrfs_search_slot(NULL, root->fs_info->extent_root, &key, path, in btrfs_lookup_data_extent()
846 ret = btrfs_search_slot(trans, root->fs_info->extent_root, in btrfs_lookup_extent_info()
2121 ret = insert_inline_extent_backref(trans, fs_info->extent_root, path, in __btrfs_inc_extent_ref()
2147 ret = insert_extent_backref(trans, root->fs_info->extent_root, in __btrfs_inc_extent_ref()
2259 ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, in run_delayed_extent_op()
2295 ret = convert_extent_item_v0(trans, root->fs_info->extent_root, in run_delayed_extent_op()
2913 if (root == root->fs_info->extent_root) in btrfs_run_delayed_refs()
3070 struct btrfs_root *extent_root = root->fs_info->extent_root; in check_committed_ref() local
3083 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in check_committed_ref()
3264 struct btrfs_root *extent_root = root->fs_info->extent_root; in write_one_cache_group() local
3268 ret = btrfs_search_slot(trans, extent_root, &cache->key, path, 0, 1); in write_one_cache_group()
4054 ret = do_chunk_alloc(trans, root->fs_info->extent_root, in btrfs_alloc_data_chunk_ondemand()
4337 struct btrfs_root *extent_root, u64 flags, int force) in do_chunk_alloc() argument
4340 struct btrfs_fs_info *fs_info = extent_root->fs_info; in do_chunk_alloc()
4348 space_info = __find_space_info(extent_root->fs_info, flags); in do_chunk_alloc()
4350 ret = update_space_info(extent_root->fs_info, flags, in do_chunk_alloc()
4361 if (should_alloc_chunk(extent_root, space_info, force)) in do_chunk_alloc()
4369 if (!should_alloc_chunk(extent_root, space_info, force)) { in do_chunk_alloc()
4419 check_system_chunk(trans, extent_root, flags); in do_chunk_alloc()
4421 ret = btrfs_alloc_chunk(trans, extent_root, flags); in do_chunk_alloc()
4729 ret = do_chunk_alloc(trans, root->fs_info->extent_root, in flush_space()
5310 return ALIGN(num_bytes, fs_info->extent_root->nodesize << 10); in calc_global_metadata_size()
5365 fs_info->extent_root->block_rsv = &fs_info->global_block_rsv; in init_global_block_rsv()
6423 struct btrfs_root *extent_root = info->extent_root; in __btrfs_free_extent() local
6453 ret = lookup_extent_backref(trans, extent_root, path, &iref, in __btrfs_free_extent()
6485 ret = remove_extent_backref(trans, extent_root, path, in __btrfs_free_extent()
6489 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6504 ret = btrfs_search_slot(trans, extent_root, in __btrfs_free_extent()
6526 ret = btrfs_search_slot(trans, extent_root, in __btrfs_free_extent()
6534 btrfs_print_leaf(extent_root, in __btrfs_free_extent()
6538 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6544 btrfs_print_leaf(extent_root, path->nodes[0]); in __btrfs_free_extent()
6549 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6552 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6561 ret = convert_extent_item_v0(trans, extent_root, path, in __btrfs_free_extent()
6564 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6575 ret = btrfs_search_slot(trans, extent_root, &key, path, in __btrfs_free_extent()
6580 btrfs_print_leaf(extent_root, path->nodes[0]); in __btrfs_free_extent()
6583 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6608 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6627 ret = remove_extent_backref(trans, extent_root, path, in __btrfs_free_extent()
6631 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6651 ret = btrfs_del_items(trans, extent_root, path, path->slots[0], in __btrfs_free_extent()
6654 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6662 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
6669 btrfs_abort_transaction(trans, extent_root, ret); in __btrfs_free_extent()
7023 struct btrfs_root *root = orig_root->fs_info->extent_root; in find_free_extent()
7644 ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, in alloc_reserved_file_extent()
7717 ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, in alloc_reserved_tree_block()
9554 free_excluded_extents(info->extent_root, block_group); in btrfs_free_block_groups()
9690 root = info->extent_root; in btrfs_read_block_groups()
9859 struct btrfs_root *extent_root = root->fs_info->extent_root; in btrfs_create_pending_block_groups() local
9875 ret = btrfs_insert_item(trans, extent_root, &key, &item, in btrfs_create_pending_block_groups()
9878 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_create_pending_block_groups()
9879 ret = btrfs_finish_chunk_alloc(trans, extent_root, in btrfs_create_pending_block_groups()
9882 btrfs_abort_transaction(trans, extent_root, ret); in btrfs_create_pending_block_groups()
9895 struct btrfs_root *extent_root; in btrfs_make_block_group() local
9898 extent_root = root->fs_info->extent_root; in btrfs_make_block_group()
9983 set_avail_alloc_bits(extent_root->fs_info, type); in btrfs_make_block_group()
10020 root = root->fs_info->extent_root; in btrfs_remove_block_group()
10335 return btrfs_start_transaction_fallback_global_rsv(fs_info->extent_root, in btrfs_start_trans_remove_block_group()
10347 struct btrfs_root *root = fs_info->extent_root; in btrfs_delete_unused_bgs()