Lines Matching refs:src

948  * Now we can iteratively remap the range of extents (and holes) in src to the
950 * logical blocks in dest and src touched by the reflink operation.
953 * - Read src's bmbt at the start of srange ("imap")
973 * ----SSSSSSS-SSSSS----SSSSSS (src file)
980 * '-' means a hole, and 'S' and 'D' are written blocks in the src and dest.
1023 struct xfs_inode *src,
1026 struct xfs_mount *mp = src->i_mount;
1030 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest))
1038 if (src->i_ino == dest->i_ino)
1039 xfs_ilock(src, XFS_ILOCK_EXCL);
1041 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL);
1043 if (!xfs_is_reflink_inode(src)) {
1044 trace_xfs_reflink_set_inode_flag(src);
1045 xfs_trans_ijoin(tp, src, XFS_ILOCK_EXCL);
1046 src->i_diflags2 |= XFS_DIFLAG2_REFLINK;
1047 xfs_trans_log_inode(tp, src, XFS_ILOG_CORE);
1048 xfs_ifork_init_cow(src);
1050 xfs_iunlock(src, XFS_ILOCK_EXCL);
1052 if (src->i_ino == dest->i_ino)
1352 struct xfs_inode *src,
1360 struct xfs_mount *mp = src->i_mount;
1372 trace_xfs_reflink_remap_blocks(src, srcoff, len, dest, destoff);
1379 lock_mode = xfs_ilock_data_map_shared(src);
1380 error = xfs_bmapi_read(src, srcoff, len, &imap, &nimaps, 0);
1381 xfs_iunlock(src, lock_mode);
1398 trace_xfs_reflink_remap_extent_src(src, &imap);
1421 XFS_FSB_TO_B(src->i_mount, remapped_len));
1483 struct xfs_inode *src = XFS_I(inode_in);
1489 ret = xfs_ilock2_io_mmap(src, dest);
1496 if (XFS_IS_REALTIME_INODE(src) || XFS_IS_REALTIME_INODE(dest))
1526 ret = xfs_reflink_set_inode_flag(src, dest);
1544 xfs_iflags_set(src, XFS_IREMAPPING);
1546 xfs_ilock_demote(src, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL);
1550 xfs_iunlock2_io_mmap(src, dest);