Lines Matching refs:ip1
555 struct xfs_inode *ip1, in xfs_lock_two_inodes() argument
567 ASSERT(ip0->i_ino != ip1->i_ino); in xfs_lock_two_inodes()
569 if (ip0->i_ino > ip1->i_ino) { in xfs_lock_two_inodes()
570 swap(ip0, ip1); in xfs_lock_two_inodes()
584 if (!xfs_ilock_nowait(ip1, xfs_lock_inumorder(ip1_mode, 1))) { in xfs_lock_two_inodes()
591 xfs_ilock(ip1, xfs_lock_inumorder(ip1_mode, 1)); in xfs_lock_two_inodes()
2536 struct xfs_inode *ip1, /* in: inode of old entry */ in xfs_sort_for_rename() argument
2557 i_tab[i++] = ip1; in xfs_sort_for_rename()
2603 struct xfs_inode *ip1, in xfs_cross_rename() argument
2620 error = xfs_dir_replace(tp, dp2, name2, ip1->i_ino, spaceres); in xfs_cross_rename()
2639 if (!S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_cross_rename()
2656 if (S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_cross_rename()
2657 error = xfs_dir_replace(tp, ip1, &xfs_name_dotdot, in xfs_cross_rename()
2682 xfs_trans_ichgtime(tp, ip1, ip1_flags); in xfs_cross_rename()
2683 xfs_trans_log_inode(tp, ip1, XFS_ILOG_CORE); in xfs_cross_rename()
3451 struct xfs_inode *ip1, in xfs_mmaplock_two_inodes_and_break_dax_layout() argument
3458 if (ip1->i_ino > ip2->i_ino) in xfs_mmaplock_two_inodes_and_break_dax_layout()
3459 swap(ip1, ip2); in xfs_mmaplock_two_inodes_and_break_dax_layout()
3464 xfs_ilock(ip1, XFS_MMAPLOCK_EXCL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
3465 error = xfs_break_dax_layouts(VFS_I(ip1), &retry); in xfs_mmaplock_two_inodes_and_break_dax_layout()
3467 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
3473 if (ip1 == ip2) in xfs_mmaplock_two_inodes_and_break_dax_layout()
3486 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
3499 struct xfs_inode *ip1, in xfs_ilock2_io_mmap() argument
3504 ret = xfs_iolock_two_inodes_and_break_layout(VFS_I(ip1), VFS_I(ip2)); in xfs_ilock2_io_mmap()
3508 if (IS_DAX(VFS_I(ip1)) && IS_DAX(VFS_I(ip2))) { in xfs_ilock2_io_mmap()
3509 ret = xfs_mmaplock_two_inodes_and_break_dax_layout(ip1, ip2); in xfs_ilock2_io_mmap()
3512 if (ip1 != ip2) in xfs_ilock2_io_mmap()
3513 inode_unlock(VFS_I(ip1)); in xfs_ilock2_io_mmap()
3517 filemap_invalidate_lock_two(VFS_I(ip1)->i_mapping, in xfs_ilock2_io_mmap()
3526 struct xfs_inode *ip1, in xfs_iunlock2_io_mmap() argument
3529 if (IS_DAX(VFS_I(ip1)) && IS_DAX(VFS_I(ip2))) { in xfs_iunlock2_io_mmap()
3531 if (ip1 != ip2) in xfs_iunlock2_io_mmap()
3532 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL); in xfs_iunlock2_io_mmap()
3534 filemap_invalidate_unlock_two(VFS_I(ip1)->i_mapping, in xfs_iunlock2_io_mmap()
3538 if (ip1 != ip2) in xfs_iunlock2_io_mmap()
3539 inode_unlock(VFS_I(ip1)); in xfs_iunlock2_io_mmap()