/* Bump the subclass so xfs_lock_inodes() acquires each lock with a different value  */
static int xfs_lock_inumorder(int lock_mode, int subclass)
/* Bump the subclass so xfs_lock_inodes() acquires each lock with a different value  */
static int xfs_lock_inumorder(int lock_mode, int subclass)
{
	if (lock_mode & (XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL))
		lock_mode |= (subclass + XFS_LOCK_INUMORDER) << XFS_IOLOCK_SHIFT;
	if (lock_mode & (XFS_ILOCK_SHARED|XFS_ILOCK_EXCL))
		lock_mode |= (subclass + XFS_LOCK_INUMORDER) << XFS_ILOCK_SHIFT;
	return lock_mode;
}