Lines Matching refs:objectid

579 	key.objectid = root_objectid;  in read_fs_root()
694 key.objectid = cur->bytenr; in build_backref_tree()
749 if (key.objectid != cur->bytenr) { in build_backref_tree()
791 if (key.objectid == key.offset) { in build_backref_tree()
887 cur->bytenr, level - 1, root->objectid, in build_backref_tree()
888 node_key->objectid, node_key->type, in build_backref_tree()
1339 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument
1351 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
1353 root_key.offset = objectid; in create_reloc_root()
1355 if (root->root_key.objectid == objectid) { in create_reloc_root()
1390 if (root->root_key.objectid == objectid) { in create_reloc_root()
1432 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
1440 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
1491 static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) in find_next_inode() argument
1506 if (objectid < btrfs_ino(entry)) in find_next_inode()
1508 else if (objectid > btrfs_ino(entry)) in find_next_inode()
1516 if (objectid <= btrfs_ino(entry)) { in find_next_inode()
1531 objectid = btrfs_ino(entry) + 1; in find_next_inode()
1544 if (bytenr >= block_group->key.objectid && in in_block_group()
1545 bytenr < block_group->key.objectid + block_group->key.offset) in in_block_group()
1626 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in replace_file_extents()
1652 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { in replace_file_extents()
1654 inode = find_next_inode(root, key.objectid); in replace_file_extents()
1656 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents()
1658 inode = find_next_inode(root, key.objectid); in replace_file_extents()
1660 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents()
1696 key.objectid, key.offset); in replace_file_extents()
1704 key.objectid, key.offset); in replace_file_extents()
1758 BUG_ON(src->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); in replace_path()
1759 BUG_ON(dest->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID); in replace_path()
1783 next_key->objectid = (u64)-1; in replace_path()
1908 src->root_key.objectid, level - 1, 0); in replace_path()
1911 blocksize, 0, dest->root_key.objectid, in replace_path()
1917 src->root_key.objectid, level - 1, 0); in replace_path()
1921 0, dest->root_key.objectid, level - 1, in replace_path()
2038 u64 objectid; in invalidate_extent_cache() local
2042 objectid = min_key->objectid; in invalidate_extent_cache()
2047 if (objectid > max_key->objectid) in invalidate_extent_cache()
2050 inode = find_next_inode(root, objectid); in invalidate_extent_cache()
2055 if (ino > max_key->objectid) { in invalidate_extent_cache()
2060 objectid = ino + 1; in invalidate_extent_cache()
2064 if (unlikely(min_key->objectid == ino)) { in invalidate_extent_cache()
2077 if (unlikely(max_key->objectid == ino)) { in invalidate_extent_cache()
2485 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { in select_reloc_root()
2550 if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) in select_one_root()
3272 if (cluster->nr > 0 && extent_key->objectid != cluster->end + 1) { in relocate_data_extent()
3280 cluster->start = extent_key->objectid; in relocate_data_extent()
3283 cluster->end = extent_key->objectid + extent_key->offset - 1; in relocate_data_extent()
3284 cluster->boundary[cluster->nr] = extent_key->objectid; in relocate_data_extent()
3344 block->bytenr = extent_key->objectid; in add_tree_block()
3345 block->key.objectid = rc->extent_root->fs_info->nodesize; in add_tree_block()
3380 key.objectid = bytenr; in __add_tree_block()
3400 if (key.objectid == bytenr && in __add_tree_block()
3468 key.objectid = ino; in delete_block_group_cache()
3552 key.objectid = ref_objectid; in find_data_references()
3613 if (WARN_ON(key.objectid != ref_objectid || in find_data_references()
3625 extent_key->objectid) in find_data_references()
3731 if (key.objectid != extent_key->objectid) in add_data_references()
3775 last = rc->block_group->key.objectid + rc->block_group->key.offset; in find_next_extent()
3783 key.objectid = rc->search_start; in find_next_extent()
3803 if (key.objectid >= last) { in find_next_extent()
3815 key.objectid + key.offset <= rc->search_start) { in find_next_extent()
3821 key.objectid + fs_info->nodesize <= in find_next_extent()
3828 key.objectid, &start, &end, in find_next_extent()
3831 if (ret == 0 && start <= key.objectid) { in find_next_extent()
3836 rc->search_start = key.objectid + key.offset; in find_next_extent()
3838 rc->search_start = key.objectid + in find_next_extent()
3892 rc->search_start = rc->block_group->key.objectid; in prepare_to_relocate()
4021 rc->search_start = key.objectid; in relocate_block_group()
4092 struct btrfs_root *root, u64 objectid) in __insert_orphan_inode() argument
4103 ret = btrfs_insert_empty_inode(trans, root, path, objectid); in __insert_orphan_inode()
4133 u64 objectid; in create_reloc_inode() local
4144 err = btrfs_find_free_objectid(root, &objectid); in create_reloc_inode()
4148 err = __insert_orphan_inode(trans, root, objectid); in create_reloc_inode()
4151 key.objectid = objectid; in create_reloc_inode()
4156 BTRFS_I(inode)->index_cnt = group->key.objectid; in create_reloc_inode()
4221 block_group->key.objectid, buf + 1); in describe_relocation()
4284 rc->block_group->key.objectid, in btrfs_relocate_block_group()
4374 key.objectid = BTRFS_TREE_RELOC_OBJECTID; in btrfs_recover_relocation()
4394 if (key.objectid != BTRFS_TREE_RELOC_OBJECTID || in btrfs_recover_relocation()
4574 root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID); in btrfs_reloc_cow_block()
4576 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_reloc_cow_block()
4586 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID && in btrfs_reloc_cow_block()
4679 new_root->root_key.objectid); in btrfs_reloc_post_snapshot()