Lines Matching refs:lock_mode
113 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_data_map_shared() local
117 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_data_map_shared()
118 xfs_ilock(ip, lock_mode); in xfs_ilock_data_map_shared()
119 return lock_mode; in xfs_ilock_data_map_shared()
126 uint lock_mode = XFS_ILOCK_SHARED; in xfs_ilock_attr_map_shared() local
130 lock_mode = XFS_ILOCK_EXCL; in xfs_ilock_attr_map_shared()
131 xfs_ilock(ip, lock_mode); in xfs_ilock_attr_map_shared()
132 return lock_mode; in xfs_ilock_attr_map_shared()
401 xfs_lock_inumorder(int lock_mode, int subclass) in xfs_lock_inumorder() argument
405 ASSERT(!(lock_mode & (XFS_ILOCK_PARENT | XFS_ILOCK_RTBITMAP | in xfs_lock_inumorder()
409 if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)) { in xfs_lock_inumorder()
414 if (lock_mode & (XFS_MMAPLOCK_SHARED|XFS_MMAPLOCK_EXCL)) { in xfs_lock_inumorder()
419 if (lock_mode & (XFS_ILOCK_SHARED|XFS_ILOCK_EXCL)) { in xfs_lock_inumorder()
424 return (lock_mode & ~XFS_LOCK_SUBCLASS_MASK) | class; in xfs_lock_inumorder()
446 uint lock_mode) in xfs_lock_inodes() argument
459 ASSERT(lock_mode & (XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL | in xfs_lock_inodes()
461 ASSERT(!(lock_mode & (XFS_IOLOCK_SHARED | XFS_MMAPLOCK_SHARED | in xfs_lock_inodes()
463 ASSERT(!(lock_mode & XFS_MMAPLOCK_EXCL) || in xfs_lock_inodes()
465 ASSERT(!(lock_mode & XFS_ILOCK_EXCL) || in xfs_lock_inodes()
468 if (lock_mode & XFS_IOLOCK_EXCL) { in xfs_lock_inodes()
469 ASSERT(!(lock_mode & (XFS_MMAPLOCK_EXCL | XFS_ILOCK_EXCL))); in xfs_lock_inodes()
470 } else if (lock_mode & XFS_MMAPLOCK_EXCL) in xfs_lock_inodes()
471 ASSERT(!(lock_mode & XFS_ILOCK_EXCL)); in xfs_lock_inodes()
501 xfs_ilock(ips[i], xfs_lock_inumorder(lock_mode, i)); in xfs_lock_inodes()
507 if (xfs_ilock_nowait(ips[i], xfs_lock_inumorder(lock_mode, i))) in xfs_lock_inodes()
524 xfs_iunlock(ips[j], lock_mode); in xfs_lock_inodes()