Lines Matching refs:lockfs

188  * For lockfs: ulockfs begin/end is now inlined in the ufs_xxx functions.
194 /* NOTE: "not blkd" below means that the operation isn't blocked by lockfs */
769 * the request passed the lockfs checks.
1558 struct lockfs lockfs, lockfs_out;
1607 if (copyin((caddr_t)arg, &lockfs,
1608 sizeof (struct lockfs)))
1614 /* Translate ILP32 lockfs to LP64 lockfs */
1618 lockfs.lf_lock = (ulong_t)lockfs32.lf_lock;
1619 lockfs.lf_flags = (ulong_t)lockfs32.lf_flags;
1620 lockfs.lf_key = (ulong_t)lockfs32.lf_key;
1621 lockfs.lf_comlen = (ulong_t)lockfs32.lf_comlen;
1622 lockfs.lf_comment =
1627 if (lockfs.lf_comlen) {
1628 if (lockfs.lf_comlen > LOCKFS_MAXCOMMENTLEN)
1631 kmem_alloc(lockfs.lf_comlen, KM_SLEEP);
1632 if (copyin(lockfs.lf_comment, comment,
1633 lockfs.lf_comlen)) {
1634 kmem_free(comment, lockfs.lf_comlen);
1637 original_comment = lockfs.lf_comment;
1638 lockfs.lf_comment = comment;
1640 if ((error = ufs_fiolfs(vp, &lockfs, 0)) == 0) {
1641 lockfs.lf_comment = original_comment;
1645 (void) copyout(&lockfs, (caddr_t)arg,
1646 sizeof (struct lockfs));
1651 /* Translate LP64 to ILP32 lockfs */
1653 (uint32_t)lockfs.lf_lock;
1655 (uint32_t)lockfs.lf_flags;
1657 (uint32_t)lockfs.lf_key;
1659 (uint32_t)lockfs.lf_comlen;
1662 lockfs.lf_comment;
1669 if (lockfs.lf_comlen)
1670 kmem_free(comment, lockfs.lf_comlen);
1680 if (copyin((caddr_t)arg, &lockfs,
1681 sizeof (struct lockfs)))
1687 /* Translate ILP32 lockfs to LP64 lockfs */
1691 lockfs.lf_lock = (ulong_t)lockfs32.lf_lock;
1692 lockfs.lf_flags = (ulong_t)lockfs32.lf_flags;
1693 lockfs.lf_key = (ulong_t)lockfs32.lf_key;
1694 lockfs.lf_comlen = (ulong_t)lockfs32.lf_comlen;
1695 lockfs.lf_comment =
1702 lockfs.lf_lock = lockfs_out.lf_lock;
1703 lockfs.lf_key = lockfs_out.lf_key;
1704 lockfs.lf_flags = lockfs_out.lf_flags;
1705 lockfs.lf_comlen = MIN(lockfs.lf_comlen,
1709 if (copyout(&lockfs, (caddr_t)arg,
1710 sizeof (struct lockfs)))
1715 /* Translate LP64 to ILP32 lockfs */
1717 lockfs32.lf_lock = (uint32_t)lockfs.lf_lock;
1718 lockfs32.lf_flags = (uint32_t)lockfs.lf_flags;
1719 lockfs32.lf_key = (uint32_t)lockfs.lf_key;
1720 lockfs32.lf_comlen = (uint32_t)lockfs.lf_comlen;
1722 (uint32_t)(uintptr_t)lockfs.lf_comment;
1729 if (lockfs.lf_comlen &&
1730 lockfs.lf_comment && lockfs_out.lf_comment)
1732 lockfs.lf_comment, lockfs.lf_comlen))
2011 * inlined lockfs checks
2842 * lockfs or a transaction.
4557 * Obey the lockfs protocol
5662 * a_lock has to be acquired before entering the lockfs protocol
5675 * We can't hold as->a_lock and wait for lockfs to succeed because
6636 * This operation must be performed before entering lockfs