• Home
  • Raw
  • Download

Lines Matching refs:tip

1219 	struct xfs_inode	*tip)	/* tmp inode */  in xfs_swap_extents_check_format()  argument
1222 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1226 (!uid_eq(VFS_I(ip)->i_uid, VFS_I(tip)->i_uid) || in xfs_swap_extents_check_format()
1227 !gid_eq(VFS_I(ip)->i_gid, VFS_I(tip)->i_gid) || in xfs_swap_extents_check_format()
1228 ip->i_d.di_projid != tip->i_d.di_projid)) in xfs_swap_extents_check_format()
1266 ifp->if_nextents > XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
1288 if (XFS_IFORK_Q(tip) && in xfs_swap_extents_check_format()
1289 XFS_BMAP_BMDR_SPACE(ip->i_df.if_broot) > XFS_IFORK_BOFF(tip)) in xfs_swap_extents_check_format()
1291 if (ifp->if_nextents <= XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
1322 struct xfs_inode *tip) in xfs_swap_extent_rmap() argument
1343 tip_flags2 = tip->i_d.di_flags2; in xfs_swap_extent_rmap()
1345 tip->i_d.di_flags2 |= XFS_DIFLAG2_REFLINK; in xfs_swap_extent_rmap()
1354 error = xfs_bmapi_read(tip, offset_fsb, count_fsb, &tirec, in xfs_swap_extent_rmap()
1361 trace_xfs_swap_extent_rmap_remap(tip, &tirec); in xfs_swap_extent_rmap()
1367 trace_xfs_swap_extent_rmap_remap_piece(tip, &tirec); in xfs_swap_extent_rmap()
1385 trace_xfs_swap_extent_rmap_remap_piece(tip, &uirec); in xfs_swap_extent_rmap()
1388 xfs_bmap_unmap_extent(tp, tip, &uirec); in xfs_swap_extent_rmap()
1397 xfs_bmap_map_extent(tp, tip, &irec); in xfs_swap_extent_rmap()
1416 tip->i_d.di_flags2 = tip_flags2; in xfs_swap_extent_rmap()
1421 tip->i_d.di_flags2 = tip_flags2; in xfs_swap_extent_rmap()
1430 struct xfs_inode *tip, in xfs_swap_extent_forks() argument
1450 if (XFS_IFORK_Q(tip) && tip->i_afp->if_nextents > 0 && in xfs_swap_extent_forks()
1451 tip->i_afp->if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()
1452 error = xfs_bmap_count_blocks(tp, tip, XFS_ATTR_FORK, &junk, in xfs_swap_extent_forks()
1468 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1475 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1481 ip->i_d.di_nblocks = tip->i_d.di_nblocks - taforkblks + aforkblks; in xfs_swap_extent_forks()
1482 tip->i_d.di_nblocks = tmp + taforkblks - aforkblks; in xfs_swap_extent_forks()
1493 ASSERT(tip->i_delayed_blks == 0); in xfs_swap_extent_forks()
1494 tip->i_delayed_blks = ip->i_delayed_blks; in xfs_swap_extent_forks()
1508 switch (tip->i_df.if_format) { in xfs_swap_extent_forks()
1567 struct xfs_inode *tip, /* tmp inode */ in xfs_swap_extents() argument
1586 lock_two_nondirectories(VFS_I(ip), VFS_I(tip)); in xfs_swap_extents()
1588 xfs_lock_two_inodes(ip, XFS_MMAPLOCK_EXCL, tip, XFS_MMAPLOCK_EXCL); in xfs_swap_extents()
1591 if ((VFS_I(ip)->i_mode & S_IFMT) != (VFS_I(tip)->i_mode & S_IFMT)) { in xfs_swap_extents()
1597 if (XFS_IS_REALTIME_INODE(ip) != XFS_IS_REALTIME_INODE(tip)) { in xfs_swap_extents()
1606 error = xfs_qm_dqattach(tip); in xfs_swap_extents()
1613 error = xfs_swap_extent_flush(tip); in xfs_swap_extents()
1617 if (xfs_inode_has_cow_data(tip)) { in xfs_swap_extents()
1618 error = xfs_reflink_cancel_cow_range(tip, 0, NULLFILEOFF, true); in xfs_swap_extents()
1631 uint32_t tipnext = tip->i_df.if_nextents; in xfs_swap_extents()
1659 xfs_lock_two_inodes(ip, XFS_ILOCK_EXCL, tip, XFS_ILOCK_EXCL); in xfs_swap_extents()
1662 xfs_trans_ijoin(tp, tip, 0); in xfs_swap_extents()
1668 sxp->sx_length != tip->i_d.di_size) { in xfs_swap_extents()
1674 trace_xfs_swap_extent_before(tip, 1); in xfs_swap_extents()
1677 error = xfs_swap_extents_check_format(ip, tip); in xfs_swap_extents()
1711 error = xfs_swap_extent_rmap(&tp, ip, tip); in xfs_swap_extents()
1713 error = xfs_swap_extent_forks(tp, ip, tip, &src_log_flags, in xfs_swap_extents()
1720 (tip->i_d.di_flags2 & XFS_DIFLAG2_REFLINK)) { in xfs_swap_extents()
1723 ip->i_d.di_flags2 |= tip->i_d.di_flags2 & XFS_DIFLAG2_REFLINK; in xfs_swap_extents()
1724 tip->i_d.di_flags2 &= ~XFS_DIFLAG2_REFLINK; in xfs_swap_extents()
1725 tip->i_d.di_flags2 |= f & XFS_DIFLAG2_REFLINK; in xfs_swap_extents()
1732 ASSERT(!tip->i_cowfp || in xfs_swap_extents()
1733 tip->i_cowfp->if_format == XFS_DINODE_FMT_EXTENTS); in xfs_swap_extents()
1735 swap(ip->i_cowfp, tip->i_cowfp); in xfs_swap_extents()
1741 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()
1742 xfs_inode_set_cowblocks_tag(tip); in xfs_swap_extents()
1744 xfs_inode_clear_cowblocks_tag(tip); in xfs_swap_extents()
1748 xfs_trans_log_inode(tp, tip, target_log_flags); in xfs_swap_extents()
1757 error = xfs_swap_change_owner(&tp, ip, tip); in xfs_swap_extents()
1762 error = xfs_swap_change_owner(&tp, tip, ip); in xfs_swap_extents()
1777 trace_xfs_swap_extent_after(tip, 1); in xfs_swap_extents()
1781 xfs_iunlock(tip, lock_flags); in xfs_swap_extents()
1782 unlock_two_nondirectories(VFS_I(ip), VFS_I(tip)); in xfs_swap_extents()