- Adjust asserts in vop_lookup_post() to match the new post PDIRUNLOCK

vfs.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-03-28 09:25:25 +00:00
parent 1e38e08e76
commit d36f0a4ff8

View File

@ -3370,18 +3370,15 @@ vop_lookup_post(void *ap, int rc)
ASSERT_VI_UNLOCKED(dvp, "VOP_LOOKUP"); ASSERT_VI_UNLOCKED(dvp, "VOP_LOOKUP");
/* if (rc)
* If this is the last path component for this lookup and LOCKPARENT
* is set, OR if there is an error the directory has to be locked.
*/
if ((flags & LOCKPARENT) && (flags & ISLASTCN))
ASSERT_VOP_LOCKED(dvp, "VOP_LOOKUP (LOCKPARENT)");
else if (rc != 0)
ASSERT_VOP_LOCKED(dvp, "VOP_LOOKUP (error)"); ASSERT_VOP_LOCKED(dvp, "VOP_LOOKUP (error)");
else if (dvp != vp) else if (flags & ISDOTDOT)
ASSERT_VOP_UNLOCKED(dvp, "VOP_LOOKUP (dvp)"); ASSERT_VOP_UNLOCKED(dvp, "VOP_LOOKUP (ISDOTDOT)");
if (flags & PDIRUNLOCK) else
ASSERT_VOP_UNLOCKED(dvp, "VOP_LOOKUP (PDIRUNLOCK)"); ASSERT_VOP_LOCKED(dvp, "VOP_LOOKUP");
if (!rc)
ASSERT_VOP_LOCKED(vp, "VOP_LOOKUP (child)");
} }
void void