Home
last modified time | relevance | path

Searched refs:extent_root (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/fs/btrfs/
Drelocation.c152 struct btrfs_root *extent_root; member
704 ret = btrfs_search_slot(NULL, rc->extent_root, &key, path1, in build_backref_tree()
742 ret = btrfs_next_leaf(rc->extent_root, path1); in build_backref_tree()
844 btrfs_print_v0_err(rc->extent_root->fs_info); in build_backref_tree()
845 btrfs_handle_fs_error(rc->extent_root->fs_info, err, in build_backref_tree()
857 root = read_fs_root(rc->extent_root->fs_info, key.offset); in build_backref_tree()
2224 struct btrfs_fs_info *fs_info = rc->extent_root->fs_info; in merge_reloc_root()
2372 struct btrfs_root *root = rc->extent_root; in prepare_to_merge()
2394 trans = btrfs_join_transaction(rc->extent_root); in prepare_to_merge()
2461 struct btrfs_fs_info *fs_info = rc->extent_root->fs_info; in merge_reloc_roots()
[all …]
Dblock-group.c496 struct btrfs_root *extent_root = fs_info->extent_root; in load_extent_tree_free() local
536 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in load_extent_tree_free()
552 ret = btrfs_find_next_key(extent_root, path, &key, 0, 0); in load_extent_tree_free()
569 ret = btrfs_next_leaf(extent_root, path); in load_extent_tree_free()
864 struct btrfs_root *root = fs_info->extent_root; in btrfs_remove_block_group()
1166 return btrfs_start_transaction_fallback_global_rsv(fs_info->extent_root, in btrfs_start_trans_remove_block_group()
1430 struct btrfs_root *root = fs_info->extent_root; in find_first_block_group()
1865 struct btrfs_root *extent_root = fs_info->extent_root; in btrfs_create_pending_block_groups() local
1885 ret = btrfs_insert_item(trans, extent_root, &key, &item, in btrfs_create_pending_block_groups()
2034 trans = btrfs_join_transaction(fs_info->extent_root); in btrfs_inc_block_group_ro()
[all …]
Dtree-defrag.c30 if (root->fs_info->extent_root == root) { in btrfs_defrag_leaves()
Dextent-tree.c136 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); in btrfs_lookup_data_extent()
191 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); in btrfs_lookup_extent_info()
482 struct btrfs_root *root = trans->fs_info->extent_root; in lookup_extent_data_ref()
558 struct btrfs_root *root = trans->fs_info->extent_root; in insert_extent_data_ref()
665 ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); in remove_extent_data_ref()
724 struct btrfs_root *root = trans->fs_info->extent_root; in lookup_tree_block_ref()
760 ret = btrfs_insert_empty_item(trans, trans->fs_info->extent_root, in insert_tree_block_ref()
826 struct btrfs_root *root = fs_info->extent_root; in lookup_inline_extent_backref()
1229 ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); in remove_extent_backref()
1587 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 1); in run_delayed_extent_op()
[all …]
Dblock-rsv.c269 num_bytes = btrfs_root_used(&fs_info->extent_root->root_item) + in btrfs_update_global_block_rsv()
334 fs_info->extent_root->block_rsv = &fs_info->delayed_refs_rsv; in btrfs_init_global_block_rsv()
Dbackref.c1003 struct btrfs_root *extent_root = fs_info->extent_root; in add_keyed_refs() local
1010 ret = btrfs_next_item(extent_root, path); in add_keyed_refs()
1162 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0);
1707 ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
1711 ret = btrfs_previous_extent_item(fs_info->extent_root, path, 0);
1914 trans = btrfs_attach_transaction(fs_info->extent_root);
Dfree-space-tree.c1048 struct btrfs_root *extent_root = trans->fs_info->extent_root; in populate_free_space_tree() local
1082 ret = btrfs_search_slot_for_read(extent_root, &key, path, 1, 0); in populate_free_space_tree()
1116 ret = btrfs_next_item(extent_root, path); in populate_free_space_tree()
Dspace-info.c498 trans = btrfs_join_transaction(fs_info->extent_root); in may_commit_transaction()
552 struct btrfs_root *root = fs_info->extent_root; in flush_space()
Dref-verify.c986 eb = btrfs_read_lock_root_node(fs_info->extent_root); in btrfs_build_ref_tree()
1000 ret = walk_down_tree(fs_info->extent_root, path, level, in btrfs_build_ref_tree()
Dtransaction.c288 WARN_ON(root == fs_info->extent_root); in record_root_in_trans()
1156 if (root != fs_info->extent_root) in commit_cowonly_roots()
1179 list_add_tail(&fs_info->extent_root->dirty_list, in commit_cowonly_roots()
Ddisk-io.c1557 return fs_info->extent_root; in btrfs_get_fs_root()
1894 btrfs_set_backup_extent_root(root_backup, info->extent_root->node->start); in backup_super_roots()
1896 btrfs_header_generation(info->extent_root->node)); in backup_super_roots()
1898 btrfs_header_level(info->extent_root->node)); in backup_super_roots()
2036 free_root_extent_buffers(info->extent_root); in free_root_pointers()
2328 fs_info->extent_root = root; in btrfs_read_roots()
Dctree.h186 __le64 extent_root; member
532 struct btrfs_root *extent_root; member
1996 extent_root, 64);
2653 kfree(fs_info->extent_root); in free_fs_info()
Ddelayed-ref.c191 ret = btrfs_reserve_metadata_bytes(fs_info->extent_root, block_rsv, in btrfs_delayed_refs_rsv_refill()
Dscrub.c2829 struct btrfs_root *root = fs_info->extent_root; in scrub_raid56_parity()
3053 struct btrfs_root *root = fs_info->extent_root; in scrub_stripe()
Dvolumes.c5190 struct btrfs_root *extent_root = fs_info->extent_root; in btrfs_finish_chunk_alloc() local
5256 btrfs_set_stack_chunk_owner(chunk, extent_root->root_key.objectid); in btrfs_finish_chunk_alloc()
Dqgroup.c3057 ret = btrfs_search_slot_for_read(fs_info->extent_root, in qgroup_rescan_leaf()
Dctree.c1027 if (root == fs_info->extent_root || in alloc_tree_block_no_bg_flush()
/Linux-v5.4/fs/btrfs/tests/
Dqgroup-tests.c472 root->fs_info->extent_root = root; in btrfs_test_qgroups()
Dfree-space-tests.c863 root->fs_info->extent_root = root; in btrfs_test_free_space_cache()