Lines Matching refs:root_key
739 struct btrfs_key root_key; in create_reloc_root() local
747 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
748 root_key.type = BTRFS_ROOT_ITEM_KEY; in create_reloc_root()
749 root_key.offset = objectid; in create_reloc_root()
751 if (root->root_key.objectid == objectid) { in create_reloc_root()
795 if (root->root_key.objectid == objectid) { in create_reloc_root()
806 &root_key, root_item); in create_reloc_root()
812 reloc_root = btrfs_read_tree_root(fs_info->tree_root, &root_key); in create_reloc_root()
874 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
882 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
943 &reloc_root->root_key, root_item); in btrfs_update_reloc_root()
1078 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in replace_file_extents()
1107 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { in replace_file_extents()
1152 root->root_key.objectid, false); in replace_file_extents()
1163 root->root_key.objectid, false); in replace_file_extents()
1219 ASSERT(src->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID); in replace_path()
1220 ASSERT(dest->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); in replace_path()
1374 btrfs_init_tree_ref(&ref, level - 1, src->root_key.objectid, in replace_path()
1383 btrfs_init_tree_ref(&ref, level - 1, dest->root_key.objectid, 0, in replace_path()
1393 btrfs_init_tree_ref(&ref, level - 1, src->root_key.objectid, in replace_path()
1403 btrfs_init_tree_ref(&ref, level - 1, dest->root_key.objectid, in replace_path()
1606 ASSERT(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); in insert_dirty_subvol()
1635 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { in clean_dirty_subvols()
1892 root = btrfs_get_fs_root(fs_info, reloc_root->root_key.offset, in prepare_to_merge()
1975 root = btrfs_get_fs_root(fs_info, reloc_root->root_key.offset, in merge_reloc_roots()
2081 root = btrfs_get_fs_root(fs_info, reloc_root->root_key.offset, false); in record_reloc_root_in_trans()
2099 reloc_root->root_key.offset); in record_reloc_root_in_trans()
2153 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { in select_reloc_root()
2260 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) in select_one_root()
2483 root->root_key.objectid, false); in do_relocation()
4123 &root->root_key, &root->root_item); in mark_garbage_root()
4190 reloc_root->root_key.offset, false); in btrfs_recover_relocation()
4252 fs_root = btrfs_get_fs_root(fs_info, reloc_root->root_key.offset, in btrfs_recover_relocation()
4386 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID && in btrfs_reloc_cow_block()
4481 new_root->root_key.objectid); in btrfs_reloc_post_snapshot()