cache: stronger vnode asserts in cache_enter_time
This commit is contained in:
parent
cd4a1797b0
commit
1e448a1558
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364487
@ -1892,10 +1892,12 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, struct componentname *cnp,
|
||||
u_long lnumcache;
|
||||
|
||||
CTR3(KTR_VFS, "cache_enter(%p, %p, %s)", dvp, vp, cnp->cn_nameptr);
|
||||
VNASSERT(vp == NULL || !VN_IS_DOOMED(vp), vp,
|
||||
("cache_enter: Adding a doomed vnode"));
|
||||
VNASSERT(dvp == NULL || !VN_IS_DOOMED(dvp), dvp,
|
||||
("cache_enter: Doomed vnode used as src"));
|
||||
VNPASS(!VN_IS_DOOMED(dvp), dvp);
|
||||
VNPASS(dvp->v_type != VNON, dvp);
|
||||
if (vp != NULL) {
|
||||
VNPASS(!VN_IS_DOOMED(vp), vp);
|
||||
VNPASS(vp->v_type != VNON, vp);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_CACHE
|
||||
if (__predict_false(!doingcache))
|
||||
|
Loading…
Reference in New Issue
Block a user