• Home
  • Raw
  • Download

Lines Matching refs:tip

1254 	struct xfs_inode	*tip)	/* tmp inode */  in xfs_swap_extents_check_format()  argument
1257 struct xfs_ifork *tifp = &tip->i_df; in xfs_swap_extents_check_format()
1261 (!uid_eq(VFS_I(ip)->i_uid, VFS_I(tip)->i_uid) || in xfs_swap_extents_check_format()
1262 !gid_eq(VFS_I(ip)->i_gid, VFS_I(tip)->i_gid) || in xfs_swap_extents_check_format()
1263 ip->i_projid != tip->i_projid)) in xfs_swap_extents_check_format()
1301 ifp->if_nextents > XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
1323 if (XFS_IFORK_Q(tip) && in xfs_swap_extents_check_format()
1324 XFS_BMAP_BMDR_SPACE(ip->i_df.if_broot) > XFS_IFORK_BOFF(tip)) in xfs_swap_extents_check_format()
1326 if (ifp->if_nextents <= XFS_IFORK_MAXEXT(tip, XFS_DATA_FORK)) in xfs_swap_extents_check_format()
1357 struct xfs_inode *tip) in xfs_swap_extent_rmap() argument
1378 tip_flags2 = tip->i_diflags2; in xfs_swap_extent_rmap()
1380 tip->i_diflags2 |= XFS_DIFLAG2_REFLINK; in xfs_swap_extent_rmap()
1389 error = xfs_bmapi_read(tip, offset_fsb, count_fsb, &tirec, in xfs_swap_extent_rmap()
1396 trace_xfs_swap_extent_rmap_remap(tip, &tirec); in xfs_swap_extent_rmap()
1402 trace_xfs_swap_extent_rmap_remap_piece(tip, &tirec); in xfs_swap_extent_rmap()
1420 trace_xfs_swap_extent_rmap_remap_piece(tip, &uirec); in xfs_swap_extent_rmap()
1431 error = xfs_iext_count_may_overflow(tip, in xfs_swap_extent_rmap()
1439 xfs_bmap_unmap_extent(tp, tip, &uirec); in xfs_swap_extent_rmap()
1448 xfs_bmap_map_extent(tp, tip, &irec); in xfs_swap_extent_rmap()
1467 tip->i_diflags2 = tip_flags2; in xfs_swap_extent_rmap()
1472 tip->i_diflags2 = tip_flags2; in xfs_swap_extent_rmap()
1481 struct xfs_inode *tip, in xfs_swap_extent_forks() argument
1501 if (XFS_IFORK_Q(tip) && tip->i_afp->if_nextents > 0 && in xfs_swap_extent_forks()
1502 tip->i_afp->if_format != XFS_DINODE_FMT_LOCAL) { in xfs_swap_extent_forks()
1503 error = xfs_bmap_count_blocks(tp, tip, XFS_ATTR_FORK, &junk, in xfs_swap_extent_forks()
1519 if (tip->i_df.if_format == XFS_DINODE_FMT_BTREE) in xfs_swap_extent_forks()
1526 swap(ip->i_df, tip->i_df); in xfs_swap_extent_forks()
1532 ip->i_nblocks = tip->i_nblocks - taforkblks + aforkblks; in xfs_swap_extent_forks()
1533 tip->i_nblocks = tmp + taforkblks - aforkblks; in xfs_swap_extent_forks()
1544 ASSERT(tip->i_delayed_blks == 0); in xfs_swap_extent_forks()
1545 tip->i_delayed_blks = ip->i_delayed_blks; in xfs_swap_extent_forks()
1559 switch (tip->i_df.if_format) { in xfs_swap_extent_forks()
1618 struct xfs_inode *tip, /* tmp inode */ in xfs_swap_extents() argument
1636 lock_two_nondirectories(VFS_I(ip), VFS_I(tip)); in xfs_swap_extents()
1638 VFS_I(tip)->i_mapping); in xfs_swap_extents()
1641 if ((VFS_I(ip)->i_mode & S_IFMT) != (VFS_I(tip)->i_mode & S_IFMT)) { in xfs_swap_extents()
1647 if (XFS_IS_REALTIME_INODE(ip) != XFS_IS_REALTIME_INODE(tip)) { in xfs_swap_extents()
1656 error = xfs_qm_dqattach(tip); in xfs_swap_extents()
1663 error = xfs_swap_extent_flush(tip); in xfs_swap_extents()
1667 if (xfs_inode_has_cow_data(tip)) { in xfs_swap_extents()
1668 error = xfs_reflink_cancel_cow_range(tip, 0, NULLFILEOFF, true); in xfs_swap_extents()
1681 uint32_t tipnext = tip->i_df.if_nextents; in xfs_swap_extents()
1709 xfs_lock_two_inodes(ip, XFS_ILOCK_EXCL, tip, XFS_ILOCK_EXCL); in xfs_swap_extents()
1711 xfs_trans_ijoin(tp, tip, 0); in xfs_swap_extents()
1717 sxp->sx_length != tip->i_disk_size) { in xfs_swap_extents()
1723 trace_xfs_swap_extent_before(tip, 1); in xfs_swap_extents()
1726 error = xfs_swap_extents_check_format(ip, tip); in xfs_swap_extents()
1760 error = xfs_swap_extent_rmap(&tp, ip, tip); in xfs_swap_extents()
1762 error = xfs_swap_extent_forks(tp, ip, tip, &src_log_flags, in xfs_swap_extents()
1769 (tip->i_diflags2 & XFS_DIFLAG2_REFLINK)) { in xfs_swap_extents()
1772 ip->i_diflags2 |= tip->i_diflags2 & XFS_DIFLAG2_REFLINK; in xfs_swap_extents()
1773 tip->i_diflags2 &= ~XFS_DIFLAG2_REFLINK; in xfs_swap_extents()
1774 tip->i_diflags2 |= f & XFS_DIFLAG2_REFLINK; in xfs_swap_extents()
1781 ASSERT(!tip->i_cowfp || in xfs_swap_extents()
1782 tip->i_cowfp->if_format == XFS_DINODE_FMT_EXTENTS); in xfs_swap_extents()
1784 swap(ip->i_cowfp, tip->i_cowfp); in xfs_swap_extents()
1790 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()
1791 xfs_inode_set_cowblocks_tag(tip); in xfs_swap_extents()
1793 xfs_inode_clear_cowblocks_tag(tip); in xfs_swap_extents()
1797 xfs_trans_log_inode(tp, tip, target_log_flags); in xfs_swap_extents()
1806 error = xfs_swap_change_owner(&tp, ip, tip); in xfs_swap_extents()
1811 error = xfs_swap_change_owner(&tp, tip, ip); in xfs_swap_extents()
1826 trace_xfs_swap_extent_after(tip, 1); in xfs_swap_extents()
1830 xfs_iunlock(tip, XFS_ILOCK_EXCL); in xfs_swap_extents()
1833 VFS_I(tip)->i_mapping); in xfs_swap_extents()
1834 unlock_two_nondirectories(VFS_I(ip), VFS_I(tip)); in xfs_swap_extents()