diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2022-10-26 15:33:47 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2022-10-26 15:54:19 +0000 |
commit | d346e3ac33105922a5812d480b49f7dda674d136 (patch) | |
tree | de76f22b6aceb8ac4d1f67d6ca38e25385bea26b | |
parent | 5daf88ea5efe6af916e71000fd6c2d81c22c8f43 (diff) | |
download | src-d346e3ac33105922a5812d480b49f7dda674d136.tar.gz src-d346e3ac33105922a5812d480b49f7dda674d136.zip |
-rw-r--r-- | sys/kern/vfs_subr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index a590579a25c0..adf2968e7f56 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1906,14 +1906,13 @@ freevnode(struct vnode *vp) VNASSERT(bo->bo_dirty.bv_cnt == 0, vp, ("dirtybufcnt not 0")); VNASSERT(pctrie_is_empty(&bo->bo_dirty.bv_root), vp, ("dirty blk trie not empty")); - VNASSERT(TAILQ_EMPTY(&vp->v_cache_dst), vp, ("vp has namecache dst")); - VNASSERT(LIST_EMPTY(&vp->v_cache_src), vp, ("vp has namecache src")); - VNASSERT(vp->v_cache_dd == NULL, vp, ("vp has namecache for ..")); VNASSERT(TAILQ_EMPTY(&vp->v_rl.rl_waiters), vp, ("Dangling rangelock waiters")); VNASSERT((vp->v_iflag & (VI_DOINGINACT | VI_OWEINACT)) == 0, vp, ("Leaked inactivation")); VI_UNLOCK(vp); + cache_assert_no_entries(vp); + #ifdef MAC mac_vnode_destroy(vp); #endif |