Lines Matching refs:src
991 struct xfs_inode *src, in xfs_reflink_set_inode_flag() argument
994 struct xfs_mount *mp = src->i_mount; in xfs_reflink_set_inode_flag()
998 if (xfs_is_reflink_inode(src) && xfs_is_reflink_inode(dest)) in xfs_reflink_set_inode_flag()
1006 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag()
1007 xfs_ilock(src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
1009 xfs_lock_two_inodes(src, XFS_ILOCK_EXCL, dest, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
1011 if (!xfs_is_reflink_inode(src)) { in xfs_reflink_set_inode_flag()
1012 trace_xfs_reflink_set_inode_flag(src); in xfs_reflink_set_inode_flag()
1013 xfs_trans_ijoin(tp, src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
1014 src->i_diflags2 |= XFS_DIFLAG2_REFLINK; in xfs_reflink_set_inode_flag()
1015 xfs_trans_log_inode(tp, src, XFS_ILOG_CORE); in xfs_reflink_set_inode_flag()
1016 xfs_ifork_init_cow(src); in xfs_reflink_set_inode_flag()
1018 xfs_iunlock(src, XFS_ILOCK_EXCL); in xfs_reflink_set_inode_flag()
1020 if (src->i_ino == dest->i_ino) in xfs_reflink_set_inode_flag()
1317 struct xfs_inode *src, in xfs_reflink_remap_blocks() argument
1325 struct xfs_mount *mp = src->i_mount; in xfs_reflink_remap_blocks()
1337 trace_xfs_reflink_remap_blocks(src, srcoff, len, dest, destoff); in xfs_reflink_remap_blocks()
1344 lock_mode = xfs_ilock_data_map_shared(src); in xfs_reflink_remap_blocks()
1345 error = xfs_bmapi_read(src, srcoff, len, &imap, &nimaps, 0); in xfs_reflink_remap_blocks()
1346 xfs_iunlock(src, lock_mode); in xfs_reflink_remap_blocks()
1363 trace_xfs_reflink_remap_extent_src(src, &imap); in xfs_reflink_remap_blocks()
1386 XFS_FSB_TO_B(src->i_mount, remapped_len)); in xfs_reflink_remap_blocks()
1449 struct xfs_inode *src = XFS_I(inode_in); in xfs_reflink_remap_prep() local
1455 ret = xfs_ilock2_io_mmap(src, dest); in xfs_reflink_remap_prep()
1462 if (XFS_IS_REALTIME_INODE(src) || XFS_IS_REALTIME_INODE(dest)) in xfs_reflink_remap_prep()
1488 ret = xfs_reflink_set_inode_flag(src, dest); in xfs_reflink_remap_prep()
1508 xfs_iunlock2_io_mmap(src, dest); in xfs_reflink_remap_prep()