Fix reversed condition in the assertion.

Pointy hat to:	kib
MFC after:	13 days
This commit is contained in:
Konstantin Belousov 2013-01-04 07:52:47 +00:00
parent 55caa1df93
commit 268dd286a0

View File

@ -224,7 +224,7 @@ null_nodeget(mp, lowervp, vpp)
* provide ready to use vnode.
*/
if (VOP_ISLOCKED(lowervp) != LK_EXCLUSIVE) {
KASSERT((MOUNTTONULLMOUNT(mp)->nullm_flags & NULLM_CACHE) == 0,
KASSERT((MOUNTTONULLMOUNT(mp)->nullm_flags & NULLM_CACHE) != 0,
("lowervp %p is not excl locked and cache is disabled",
lowervp));
vn_lock(lowervp, LK_UPGRADE | LK_RETRY);