• Home
  • Raw
  • Download

Lines Matching refs:dest

865 	struct xfs_inode	*dest)  in xfs_reflink_set_inode_flag()  argument
871 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest)) in xfs_reflink_set_inode_flag()
879 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag()
882 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
893 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag()
896 if (!xfs_is_reflink_inode(dest)) { in xfs_reflink_set_inode_flag()
897 trace_xfs_reflink_set_inode_flag(dest); in xfs_reflink_set_inode_flag()
898 xfs_trans_ijoin(tp, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
899 dest->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag()
900 xfs_trans_log_inode(tp, dest, XFS_ILOG_CORE); in xfs_reflink_set_inode_flag()
901 xfs_ifork_init_cow(dest); in xfs_reflink_set_inode_flag()
903 xfs_iunlock(dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
912 trace_xfs_reflink_set_inode_flag_error(dest, error, _RET_IP_); in xfs_reflink_set_inode_flag()
921 struct xfs_inode *dest, in xfs_reflink_update_dest() argument
926 struct xfs_mount *mp = dest->i_mount; in xfs_reflink_update_dest()
930 if (newlen <= i_size_read(VFS_I(dest)) && cowextsize == 0) in xfs_reflink_update_dest()
937 xfs_ilock(dest, XFS_ILOCK_EXCL); in xfs_reflink_update_dest()
938 xfs_trans_ijoin(tp, dest, XFS_ILOCK_EXCL); in xfs_reflink_update_dest()
940 if (newlen > i_size_read(VFS_I(dest))) { in xfs_reflink_update_dest()
941 trace_xfs_reflink_update_inode_size(dest, newlen); in xfs_reflink_update_dest()
942 i_size_write(VFS_I(dest), newlen); in xfs_reflink_update_dest()
943 dest->i_d.di_size = newlen; in xfs_reflink_update_dest()
947 dest->i_d.di_cowextsize = cowextsize; in xfs_reflink_update_dest()
948 dest->i_d.di_flags2 |= XFS_DIFLAG2_COWEXTSIZE; in xfs_reflink_update_dest()
951 xfs_trans_log_inode(tp, dest, XFS_ILOG_CORE); in xfs_reflink_update_dest()
959 trace_xfs_reflink_update_inode_size_error(dest, error, _RET_IP_); in xfs_reflink_update_dest()
1114 struct xfs_inode *dest, in xfs_reflink_remap_blocks() argument
1138 dest, destoff); in xfs_reflink_remap_blocks()
1157 error = xfs_reflink_remap_extent(dest, &imap, destoff, in xfs_reflink_remap_blocks()
1175 trace_xfs_reflink_remap_blocks_error(dest, error, _RET_IP_); in xfs_reflink_remap_blocks()
1191 struct inode *dest) in xfs_iolock_two_inodes_and_break_layout() argument
1195 if (src > dest) in xfs_iolock_two_inodes_and_break_layout()
1196 swap(src, dest); in xfs_iolock_two_inodes_and_break_layout()
1203 if (src != dest) { in xfs_iolock_two_inodes_and_break_layout()
1204 error = break_layout(dest, true); in xfs_iolock_two_inodes_and_break_layout()
1219 if (src == dest) in xfs_iolock_two_inodes_and_break_layout()
1223 inode_lock_nested(dest, I_MUTEX_NONDIR2); in xfs_iolock_two_inodes_and_break_layout()
1224 error = break_layout(dest, false); in xfs_iolock_two_inodes_and_break_layout()
1227 inode_unlock(dest); in xfs_iolock_two_inodes_and_break_layout()
1245 struct xfs_inode *dest = XFS_I(inode_out); in xfs_reflink_remap_unlock() local
1248 xfs_iunlock(dest, XFS_MMAPLOCK_EXCL); in xfs_reflink_remap_unlock()
1317 struct xfs_inode *dest = XFS_I(inode_out); in xfs_reflink_remap_prep() local
1328 xfs_lock_two_inodes(src, XFS_MMAPLOCK_EXCL, dest, in xfs_reflink_remap_prep()
1334 if (XFS_IS_REALTIME_INODE(src) || XFS_IS_REALTIME_INODE(dest)) in xfs_reflink_remap_prep()
1347 ret = xfs_qm_dqattach(dest); in xfs_reflink_remap_prep()
1355 ret = xfs_reflink_zero_posteof(dest, pos_out); in xfs_reflink_remap_prep()
1360 ret = xfs_reflink_set_inode_flag(src, dest); in xfs_reflink_remap_prep()
1369 if (pos_out > XFS_ISIZE(dest)) { in xfs_reflink_remap_prep()
1370 loff_t flen = *len + (pos_out - XFS_ISIZE(dest)); in xfs_reflink_remap_prep()
1371 ret = xfs_flush_unmap_range(dest, XFS_ISIZE(dest), flen); in xfs_reflink_remap_prep()
1373 ret = xfs_flush_unmap_range(dest, pos_out, *len); in xfs_reflink_remap_prep()