Lines Matching refs:ip1

555 	struct xfs_inode	*ip1,
567 ASSERT(ip0->i_ino != ip1->i_ino);
569 if (ip0->i_ino > ip1->i_ino) {
570 swap(ip0, ip1);
584 if (!xfs_ilock_nowait(ip1, xfs_lock_inumorder(ip1_mode, 1))) {
591 xfs_ilock(ip1, xfs_lock_inumorder(ip1_mode, 1));
2625 struct xfs_inode *ip1, /* in: inode of old entry */
2646 i_tab[i++] = ip1;
2692 struct xfs_inode *ip1,
2709 error = xfs_dir_replace(tp, dp2, name2, ip1->i_ino, spaceres);
2728 if (!S_ISDIR(VFS_I(ip1)->i_mode)) {
2736 * Although ip1 isn't changed here, userspace needs
2745 if (S_ISDIR(VFS_I(ip1)->i_mode)) {
2746 error = xfs_dir_replace(tp, ip1, &xfs_name_dotdot,
2751 /* transfer ip1 ".." reference to dp2 */
2771 xfs_trans_ichgtime(tp, ip1, ip1_flags);
2772 xfs_trans_log_inode(tp, ip1, XFS_ILOG_CORE);
3540 struct xfs_inode *ip1,
3547 if (ip1->i_ino > ip2->i_ino)
3548 swap(ip1, ip2);
3553 xfs_ilock(ip1, XFS_MMAPLOCK_EXCL);
3554 error = xfs_break_dax_layouts(VFS_I(ip1), &retry);
3556 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL);
3562 if (ip1 == ip2)
3575 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL);
3588 struct xfs_inode *ip1,
3593 ret = xfs_iolock_two_inodes_and_break_layout(VFS_I(ip1), VFS_I(ip2));
3597 if (IS_DAX(VFS_I(ip1)) && IS_DAX(VFS_I(ip2))) {
3598 ret = xfs_mmaplock_two_inodes_and_break_dax_layout(ip1, ip2);
3601 if (ip1 != ip2)
3602 inode_unlock(VFS_I(ip1));
3606 filemap_invalidate_lock_two(VFS_I(ip1)->i_mapping,
3615 struct xfs_inode *ip1,
3618 if (IS_DAX(VFS_I(ip1)) && IS_DAX(VFS_I(ip2))) {
3620 if (ip1 != ip2)
3621 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL);
3623 filemap_invalidate_unlock_two(VFS_I(ip1)->i_mapping,
3627 if (ip1 != ip2)
3628 inode_unlock(VFS_I(ip1));
3634 struct xfs_inode *ip1,
3637 xfs_iflags_clear(ip1, XFS_IREMAPPING);
3639 if (ip1 != ip2)
3640 xfs_iunlock(ip1, XFS_MMAPLOCK_SHARED);
3643 if (ip1 != ip2)
3644 inode_unlock_shared(VFS_I(ip1));