Lines Matching refs:new_bytenr
270 update_backref_node(cache, node, node->new_bytenr); in update_backref_cache()
280 if (node->bytenr == node->new_bytenr) in update_backref_cache()
282 update_backref_node(cache, node, node->new_bytenr); in update_backref_cache()
557 BUG_ON(node->new_bytenr != reloc_root->node->start); in clone_backref_node()
994 static int get_new_location(struct inode *reloc_inode, u64 *new_bytenr, in get_new_location() argument
1031 *new_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in get_new_location()
1054 u64 new_bytenr = 0; in replace_file_extents() local
1123 ret = get_new_location(rc->data_inode, &new_bytenr, in replace_file_extents()
1133 btrfs_set_file_extent_disk_bytenr(leaf, fi, new_bytenr); in replace_file_extents()
1137 btrfs_init_generic_ref(&ref, BTRFS_ADD_DELAYED_REF, new_bytenr, in replace_file_extents()
1198 u64 new_bytenr; in replace_path() local
1262 new_bytenr = btrfs_node_blockptr(eb, in replace_path()
1267 new_bytenr = 0; in replace_path()
1271 if (WARN_ON(new_bytenr > 0 && new_bytenr == old_bytenr)) { in replace_path()
1276 if (new_bytenr == 0 || old_ptr_gen > last_snapshot || in replace_path()
1348 btrfs_set_node_blockptr(parent, slot, new_bytenr); in replace_path()
1364 btrfs_init_generic_ref(&ref, BTRFS_ADD_DELAYED_REF, new_bytenr, in replace_path()
1371 btrfs_init_generic_ref(&ref, BTRFS_DROP_DELAYED_REF, new_bytenr, in replace_path()
2060 if (next->new_bytenr != root->node->start) { in select_reloc_root()
2061 BUG_ON(next->new_bytenr); in select_reloc_root()
2063 next->new_bytenr = root->node->start; in select_reloc_root()
2516 BUG_ON(node->new_bytenr); in relocate_tree_block()
2520 node->new_bytenr = root->node->start; in relocate_tree_block()
3911 u64 new_bytenr; in btrfs_reloc_clone_csums() local
3939 new_bytenr = ordered->disk_bytenr + sums->bytenr - disk_bytenr; in btrfs_reloc_clone_csums()
3940 sums->bytenr = new_bytenr; in btrfs_reloc_clone_csums()
3978 node->new_bytenr != buf->start); in btrfs_reloc_cow_block()
3983 node->new_bytenr = cow->start; in btrfs_reloc_cow_block()