Lines Matching refs:old_addr
4036 static int copy_remapped_data(struct btrfs_fs_info *fs_info, u64 old_addr, in copy_remapped_data() argument
4062 ret = copy_remapped_data_io(fs_info, &priv, pages, old_addr, in copy_remapped_data()
4075 old_addr += to_copy; in copy_remapped_data()
4093 u64 old_addr) in add_remap_item() argument
4101 key.objectid = old_addr; in add_remap_item()
4122 u64 length, u64 old_addr) in add_remap_backref_item() argument
4140 btrfs_set_stack_remap_address(&remap, old_addr); in add_remap_backref_item()
4152 u64 length, u64 old_addr) in move_existing_remap() argument
4208 key.objectid = old_addr; in move_existing_remap()
4247 length - dest_length, old_addr + dest_length); in move_existing_remap()
4278 btrfs_set_stack_remap_address(&remap, old_addr + dest_length); in move_existing_remap()
4288 ret = add_remap_backref_item(trans, path, dest_addr, dest_length, old_addr); in move_existing_remap()
4354 u64 old_addr; in move_existing_remaps() local
4405 old_addr = btrfs_remap_address(leaf, remap); in move_existing_remaps()
4410 key.offset, old_addr); in move_existing_remaps()
4802 struct btrfs_block_group *src_bg, u64 old_addr, in add_remap_entry() argument
4810 key.objectid = old_addr; in add_remap_entry()
4828 key.objectid > old_addr || in add_remap_entry()
4829 key.objectid + key.offset <= old_addr) { in add_remap_entry()
4835 if (key.objectid == old_addr) { in add_remap_entry()
4844 new_key.offset = old_addr - key.objectid; in add_remap_entry()
4852 ret = add_remap_item(trans, path, new_addr, length, old_addr); in add_remap_entry()
4857 if (key.objectid + key.offset != old_addr + length) { in add_remap_entry()
4858 new_key.objectid = old_addr + length; in add_remap_entry()
4860 new_key.offset = key.objectid + key.offset - old_addr - length; in add_remap_entry()
4873 ret = add_remap_backref_item(trans, path, new_addr, length, old_addr); in add_remap_entry()
5825 u64 old_addr, u64 length, u64 new_addr) in insert_remap_item() argument
5832 if (old_addr == new_addr) { in insert_remap_item()
5834 key.objectid = old_addr; in insert_remap_item()
5844 key.objectid = old_addr; in insert_remap_item()
5872 btrfs_set_stack_remap_address(&remap, old_addr); in insert_remap_item()