Lines Matching refs:destoff
24 const u64 destoff,
38 if (endoff > destoff + olen)
39 endoff = destoff + olen;
335 * @destoff: Offset within @inode to start clone
340 const u64 destoff, int no_time_update)
352 u64 last_dest_end = destoff;
464 new_key.offset = key.offset + destoff - off;
466 new_key.offset = destoff;
560 destoff, olen, no_time_update);
563 if (new_key.offset + datal >= destoff + len)
578 if (last_dest_end < destoff + len) {
605 last_dest_end, destoff + len - 1, NULL, &trans);
609 ret = clone_finish_inode_update(trans, inode, destoff + len,
610 destoff, olen, no_time_update);
704 u64 off, u64 olen, u64 destoff)
725 if (destoff > inode->i_size) {
728 ret = btrfs_cont_expand(BTRFS_I(inode), inode->i_size, destoff);
741 destoff - wb_start);
752 end = destoff + len - 1;
753 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state);
754 ret = btrfs_clone(src, inode, off, olen, len, destoff, 0);
755 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state);
762 wb_ret = btrfs_wait_ordered_range(BTRFS_I(inode), destoff, len);
769 round_down(destoff, PAGE_SIZE),
770 round_up(destoff + len, PAGE_SIZE) - 1);
864 struct file *dst_file, loff_t destoff, loff_t len,
882 ret = btrfs_remap_file_range_prep(src_file, off, dst_file, destoff,
889 &dst_inode->vfs_inode, destoff);
891 ret = btrfs_clone_files(dst_file, src_file, off, len, destoff);
913 ret = btrfs_sync_file(dst_file, destoff,
914 destoff + len - 1, 0);