Lines Matching refs:ip1
486 struct xfs_inode *ip1, in xfs_lock_two_inodes() argument
498 ASSERT(ip0->i_ino != ip1->i_ino); in xfs_lock_two_inodes()
500 if (ip0->i_ino > ip1->i_ino) { in xfs_lock_two_inodes()
501 swap(ip0, ip1); in xfs_lock_two_inodes()
515 if (!xfs_ilock_nowait(ip1, xfs_lock_inumorder(ip1_mode, 1))) { in xfs_lock_two_inodes()
522 xfs_ilock(ip1, xfs_lock_inumorder(ip1_mode, 1)); in xfs_lock_two_inodes()
1986 struct xfs_inode *ip1, /* in: inode of old entry */ in xfs_sort_for_rename() argument
2007 i_tab[i++] = ip1; in xfs_sort_for_rename()
2703 struct xfs_inode *ip1, in xfs_mmaplock_two_inodes_and_break_dax_layout() argument
2710 if (ip1->i_ino > ip2->i_ino) in xfs_mmaplock_two_inodes_and_break_dax_layout()
2711 swap(ip1, ip2); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2716 xfs_ilock(ip1, XFS_MMAPLOCK_EXCL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2717 error = xfs_break_dax_layouts(VFS_I(ip1), &retry); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2719 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2725 if (ip1 == ip2) in xfs_mmaplock_two_inodes_and_break_dax_layout()
2738 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2751 struct xfs_inode *ip1, in xfs_ilock2_io_mmap() argument
2756 ret = xfs_iolock_two_inodes_and_break_layout(VFS_I(ip1), VFS_I(ip2)); in xfs_ilock2_io_mmap()
2760 if (IS_DAX(VFS_I(ip1)) && IS_DAX(VFS_I(ip2))) { in xfs_ilock2_io_mmap()
2761 ret = xfs_mmaplock_two_inodes_and_break_dax_layout(ip1, ip2); in xfs_ilock2_io_mmap()
2764 if (ip1 != ip2) in xfs_ilock2_io_mmap()
2765 inode_unlock(VFS_I(ip1)); in xfs_ilock2_io_mmap()
2769 filemap_invalidate_lock_two(VFS_I(ip1)->i_mapping, in xfs_ilock2_io_mmap()
2778 struct xfs_inode *ip1, in xfs_iunlock2_io_mmap() argument
2781 if (IS_DAX(VFS_I(ip1)) && IS_DAX(VFS_I(ip2))) { in xfs_iunlock2_io_mmap()
2783 if (ip1 != ip2) in xfs_iunlock2_io_mmap()
2784 xfs_iunlock(ip1, XFS_MMAPLOCK_EXCL); in xfs_iunlock2_io_mmap()
2786 filemap_invalidate_unlock_two(VFS_I(ip1)->i_mapping, in xfs_iunlock2_io_mmap()
2790 if (ip1 != ip2) in xfs_iunlock2_io_mmap()
2791 inode_unlock(VFS_I(ip1)); in xfs_iunlock2_io_mmap()
2797 struct xfs_inode *ip1, in xfs_iunlock2_remapping() argument
2800 xfs_iflags_clear(ip1, XFS_IREMAPPING); in xfs_iunlock2_remapping()
2802 if (ip1 != ip2) in xfs_iunlock2_remapping()
2803 xfs_iunlock(ip1, XFS_MMAPLOCK_SHARED); in xfs_iunlock2_remapping()
2806 if (ip1 != ip2) in xfs_iunlock2_remapping()
2807 inode_unlock_shared(VFS_I(ip1)); in xfs_iunlock2_remapping()