Lines Matching refs:new_key
165 struct btrfs_key *new_key, in clone_copy_inline_extent() argument
175 const u64 aligned_end = ALIGN(new_key->offset + datal, in clone_copy_inline_extent()
182 if (new_key->offset > 0) { in clone_copy_inline_extent()
183 ret = copy_inline_to_page(BTRFS_I(dst), new_key->offset, in clone_copy_inline_extent()
271 ret = btrfs_insert_empty_item(trans, root, path, new_key, size); in clone_copy_inline_extent()
316 ret = copy_inline_to_page(BTRFS_I(dst), new_key->offset, in clone_copy_inline_extent()
371 struct btrfs_key new_key; in btrfs_clone() local
448 memcpy(&new_key, &key, sizeof(new_key)); in btrfs_clone()
449 new_key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_clone()
451 new_key.offset = key.offset + destoff - off; in btrfs_clone()
453 new_key.offset = destoff; in btrfs_clone()
461 if (new_key.offset != last_dest_end) in btrfs_clone()
464 drop_start = new_key.offset; in btrfs_clone()
489 clone_info.file_offset = new_key.offset; in btrfs_clone()
493 drop_start, new_key.offset + datal - 1, in btrfs_clone()
511 ret = clone_copy_inline_extent(inode, path, &new_key, in btrfs_clone()
533 last_dest_end = ALIGN(new_key.offset + datal, in btrfs_clone()
539 if (new_key.offset + datal >= destoff + len) in btrfs_clone()