mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Assert that we're not in the name cache anymore in vdestroy().
Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
1b2da2d0fa
commit
d6dbf760a6
1 changed files with 2 additions and 0 deletions
|
|
@ -723,6 +723,8 @@ vdestroy(struct vnode *vp)
|
|||
VNASSERT(bo->bo_clean.bv_root == NULL, vp, ("cleanblkroot not NULL"));
|
||||
VNASSERT(bo->bo_dirty.bv_cnt == 0, vp, ("dirtybufcnt not 0"));
|
||||
VNASSERT(bo->bo_dirty.bv_root == NULL, vp, ("dirtyblkroot not NULL"));
|
||||
VNASSERT(TAILQ_EMPTY(&vp->v_cache_dst), vp, ("vp has namecache dst"));
|
||||
VNASSERT(LIST_EMPTY(&vp->v_cache_src), vp, ("vp has namecache src"));
|
||||
#ifdef MAC
|
||||
mac_destroy_vnode(vp);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue