aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/ufs/ffs/ffs_vnops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 38511647c502..1dfdf5182a42 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -591,6 +591,9 @@ ffs_unlock_debug(struct vop_unlock_args *ap)
VI_UNLOCK(vp);
}
}
+ KASSERT(vp->v_type != VDIR || vp->v_vnlock->lk_recurse != 0 ||
+ (ip->i_flag & IN_ENDOFF) == 0,
+ ("ufs dir vp %p ip %p flags %#x", vp, ip, ip->i_flag));
#ifdef DIAGNOSTIC
if (VOP_ISLOCKED(vp) == LK_EXCLUSIVE && ip != NULL &&
vp->v_vnlock->lk_recurse == 0)