Lines Matching refs:destoff

18 				     const u64 destoff,  in clone_finish_inode_update()  argument
34 if (endoff > destoff + olen) in clone_finish_inode_update()
35 endoff = destoff + olen; in clone_finish_inode_update()
334 const u64 destoff, int no_time_update) in btrfs_clone() argument
346 u64 last_dest_end = destoff; in btrfs_clone()
458 new_key.offset = key.offset + destoff - off; in btrfs_clone()
460 new_key.offset = destoff; in btrfs_clone()
554 destoff, olen, no_time_update); in btrfs_clone()
557 if (new_key.offset + datal >= destoff + len) in btrfs_clone()
572 if (last_dest_end < destoff + len) { in btrfs_clone()
599 last_dest_end, destoff + len - 1, NULL, &trans); in btrfs_clone()
603 ret = clone_finish_inode_update(trans, inode, destoff + len, in btrfs_clone()
604 destoff, olen, no_time_update); in btrfs_clone()
721 u64 off, u64 olen, u64 destoff) in btrfs_clone_files() argument
740 if (destoff > inode->i_size) { in btrfs_clone_files()
743 ret = btrfs_cont_expand(BTRFS_I(inode), inode->i_size, destoff); in btrfs_clone_files()
756 destoff - wb_start); in btrfs_clone_files()
765 btrfs_double_extent_lock(src, off, inode, destoff, len); in btrfs_clone_files()
766 ret = btrfs_clone(src, inode, off, olen, len, destoff, 0); in btrfs_clone_files()
767 btrfs_double_extent_unlock(src, off, inode, destoff, len); in btrfs_clone_files()
774 wb_ret = btrfs_wait_ordered_range(inode, destoff, len); in btrfs_clone_files()
781 round_down(destoff, PAGE_SIZE), in btrfs_clone_files()
782 round_up(destoff + len, PAGE_SIZE) - 1); in btrfs_clone_files()
878 struct file *dst_file, loff_t destoff, loff_t len, in btrfs_remap_file_range() argument
896 ret = btrfs_remap_file_range_prep(src_file, off, dst_file, destoff, in btrfs_remap_file_range()
902 ret = btrfs_extent_same(src_inode, off, len, dst_inode, destoff); in btrfs_remap_file_range()
904 ret = btrfs_clone_files(dst_file, src_file, off, len, destoff); in btrfs_remap_file_range()
925 ret = btrfs_sync_file(dst_file, destoff, in btrfs_remap_file_range()
926 destoff + len - 1, 0); in btrfs_remap_file_range()