Home
last modified time | relevance | path

Searched refs:VNASSERT (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/sys/
H A Dkassert.h66 #define VNASSERT(exp, vp, msg) do { \ macro
82 VNASSERT(exp, vp, ("condition %s not met at %s:%d (%s)", \
94 #define VNASSERT(exp, vp, msg) do { \ macro
H A Dvnode.h1034 VNASSERT(error_ == 0, (vp), ("VOP_ADD_WRITECOUNT returned %d", \
1042 VNASSERT(error_ == 0, (vp), ("VOP_SET_TEXT returned %d", \
1050 VNASSERT(error_ == 0, (vp), ("VOP_UNSET_TEXT returned %d", \
/freebsd/sys/kern/
H A Dvfs_subr.c2196 VNASSERT(vp->v_data == NULL, vp, ("cleaned vnode isn't")); in freevnode()
2198 VNASSERT(vp->v_usecount == 0, vp, ("Non-zero use count")); in freevnode()
2199 VNASSERT(vp->v_writecount == 0, vp, ("Non-zero write count")); in freevnode()
2200 VNASSERT(bo->bo_numoutput == 0, vp, ("Clean vnode has pending I/O's")); in freevnode()
2201 VNASSERT(bo->bo_clean.bv_cnt == 0, vp, ("cleanbufcnt not 0")); in freevnode()
2202 VNASSERT(pctrie_is_empty(&bo->bo_clean.bv_root), vp, in freevnode()
2204 VNASSERT(bo->bo_dirty.bv_cnt == 0, vp, ("dirtybufcnt not 0")); in freevnode()
2205 VNASSERT(pctrie_is_empty(&bo->bo_dirty.bv_root), vp, in freevnode()
2207 VNASSERT((vp->v_iflag & (VI_DOINGINACT | VI_OWEINACT)) == 0, vp, in freevnode()
2250 VNASSERT(mp->mnt_nvnodelistsize > 0, vp, in delmntque()
[all …]
H A Dvfs_vnops.c1793 VNASSERT(VN_IS_DOOMED(vp), vp, ("vnode not doomed")); in _vn_lock_fallback()
1826 VNASSERT((flags & LK_TYPE_MASK) != 0, vp, in _vn_lock()
3892 VNASSERT(vp->v_type == VDIR, vp, ("vnode is not a directory")); in vn_dir_next_dirent()
H A Dvfs_default.c1269 VNASSERT(n + ap->a_inc >= 0, vp, in vop_stdadd_writecount_impl()
/freebsd/sys/fs/unionfs/
H A Dunion_subr.c429 VNASSERT(lowervp == NULLVP || !VN_IS_DOOMED(lowervp), vp, in unionfs_nodeget()
431 VNASSERT(uppervp == NULLVP || !VN_IS_DOOMED(uppervp), vp, in unionfs_nodeget()
483 VNASSERT(unp != NULL, vp, ("%s: already reclaimed", __func__)); in unionfs_noderem()
534 VNASSERT(writerefs >= 0, vp, in unionfs_noderem()
542 VNASSERT(uvp != NULL, vp, in unionfs_noderem()
777 VNASSERT(vp->v_writecount == 0, vp, in unionfs_node_update()
866 VNASSERT((unp->un_flag & flag) != 0, vp, in unionfs_clear_in_progress_flag()
H A Dunion_vnops.c76 VNASSERT(((vp)->v_op == &unionfs_vnodeops), vp, \
2062 VNASSERT(vp != NULL, ovp, ("%s: NULL parent vnode", __func__)); in unionfs_getwritemount()
2226 VNASSERT((flags & LK_DOWNGRADE) == 0, vp, in unionfs_lock()
2760 VNASSERT(writerefs >= 0, vp, in unionfs_add_writecount()
2762 VNASSERT(writerefs + ap->a_inc >= 0, vp, in unionfs_add_writecount()
/freebsd/sys/fs/nullfs/
H A Dnull_subr.c157 VNASSERT(0, NULLTOV(oxp), in null_hashins()
H A Dnull_vnops.c368 VNASSERT(vp->v_writecount >= 0, vp, ("wrong null writecount")); in null_add_writecount()
369 VNASSERT(vp->v_writecount + ap->a_inc >= 0, vp, in null_add_writecount()
/freebsd/sys/vm/
H A Dvnode_pager.c180 VNASSERT(vp->v_object != NULL, vp, ("%s: NULL object", __func__)); in vnode_create_vobject_any()
188 VNASSERT(!vn_isdisk(vp), vp, ("%s: disk vnode", __func__)); in vnode_create_vobject()
189 VNASSERT(isize == VNODE_NO_SIZE || isize >= 0, vp, in vnode_create_vobject()
201 VNASSERT(isize > 0, vp, ("%s: invalid size (%jd)", __func__, in vnode_create_disk_vobject()
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_subr.c132 VNASSERT((object->flags & OBJ_TMPFS_VREF) == 0, vp, in tmpfs_pager_writecount_recalc()
136 VNASSERT((object->flags & OBJ_TMPFS_VREF) != 0, vp, in tmpfs_pager_writecount_recalc()
1109 VNASSERT((object->flags & OBJ_TMPFS_VREF) == 0, vp, in tmpfs_alloc_vp()
/freebsd/sys/ufs/ffs/
H A Dffs_vnops.c599 VNASSERT((vp->v_mflag & VMP_LAZYLIST), vp, in ffs_unlock_debug()
2038 VNASSERT(I_ENDOFF(dp) != 0 && I_ENDOFF(dp) < dp->i_size, dvp, in ffs_vput_pair()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c103 VNASSERT((vp)->v_holdcnt > 0 && (vp)->v_usecount > 0, vp, \