Home
last modified time | relevance | path

Searched refs:vrefcnt (Results 1 – 25 of 35) sorted by relevance

12

/netbsd/src/sys/miscfs/genfs/
Dlayer_subr.c130 KASSERT(vrefcnt(lowervp) > 0); in layer_node_create()
170 if (vrefcnt(a->layer_lowervp) < 1) { in layer_checkvp()
181 LAYERTOV(a), vrefcnt(LAYERTOV(a)), in layer_checkvp()
182 a->layer_lowervp, vrefcnt(a->layer_lowervp), in layer_checkvp()
/netbsd/src/sys/coda/
Dcoda_subr.c222 coda_f2s(&cp->c_fid), vrefcnt(CTOV(cp)))); in coda_testflush_selector()
372 coda_f2s(&cp->c_fid), vrefcnt(CTOV(cp)) - 1, error));); in handleDownCall()
373 if (vrefcnt(CTOV(cp)) == 1) { in handleDownCall()
396 coda_f2s(&cp->c_fid), vrefcnt(CTOV(cp)) - 1));); in handleDownCall()
397 if (vrefcnt(CTOV(cp)) == 1) { in handleDownCall()
429 coda_f2s(&cp->c_fid), vrefcnt(CTOV(cp)) - 1, error));); in handleDownCall()
430 if (vrefcnt(CTOV(cp)) == 1) { in handleDownCall()
Dcoda_namecache.c350 if ((dcstat == IS_DOWNCALL) && (vrefcnt(CTOV(cncp->dcp)) == 1)) { in coda_nc_remove()
355 if ((dcstat == IS_DOWNCALL) && (vrefcnt(CTOV(cncp->cp)) == 1)) { in coda_nc_remove()
572 && (vrefcnt(CTOV(cncp->dcp)) == 1)) in coda_nc_flush()
586 && (vrefcnt(CTOV(cncp->cp)) == 1)) in coda_nc_flush()
Dcoda_vnops.c335 __func__, vrefcnt(vp), cp->c_ovp, vp, cp); in coda_close()
471 coda_f2s(&cp->c_fid), vrefcnt(CTOV(cp)))); ) in coda_rdwr()
857 if (vrefcnt(vp) > 1) in coda_inactive()
858 printf("%s: %p usecount %d\n", __func__, vp, vrefcnt(vp)); in coda_inactive()
1580 __func__, coda_f2s(&cp->c_fid), vrefcnt(cvp))); ) in coda_readdir()
1745 if (vrefcnt(vp) != 0) in coda_reclaim()
/netbsd/src/sys/kern/
Dvfs_vnode.c256 vrefcnt(struct vnode *vp) in vrefcnt() function
280 int refcnt = vrefcnt(vp); in _vstate_assert()
665 if (vrefcnt(vp) > 0) in vdrain_one()
671 if (vrefcnt(vp) > 0 || VSTATE_GET(vp) != VS_LOADED) { in vdrain_one()
792 if (vrefcnt(vp) > 1) { in vput()
896 if (vrefcnt(vp) <= 0 || vp->v_writecount != 0) { in vrelel()
1040 KASSERT(vrefcnt(vp) > 0); in vrelel()
1114 KASSERT(vrefcnt(vp) > 0); in vref()
1129 if (vp->v_holdcnt++ == 0 && vrefcnt(vp) == 0) in vholdl()
1160 if (vp->v_holdcnt == 0 && vrefcnt(vp) == 0) in holdrelel()
[all …]
Dvfs_cache.c710 KASSERT(vrefcnt(dvp) > 0); in cache_lookup_linked()
1066 KASSERT(vrefcnt(cvp) > 0); in cache_enter_mount()
1067 KASSERT(vrefcnt(rvp) > 0); in cache_enter_mount()
Dvfs_mount.c471 if (vrefcnt(mvp) != 0) { in vfs_vnode_iterator_destroy()
659 if (vrefcnt(vp) > 1 && in vflush_one()
729 if (vrefcnt(olddp) == 1) { in mount_checkdirs()
Dvfs_getcwd.c537 KASSERT(vrefcnt(vp) > 0); in vnode_to_path()
Dexec_subr.c93 KASSERT(vp == NULL || vrefcnt(vp) > 0); in new_vmcmd()
/netbsd/src/sys/miscfs/nullfs/
Dnull_vfsops.c198 if (vrefcnt(null_rootvp) > 1 && (mntflags & MNT_FORCE) == 0) in nullfs_unmount()
/netbsd/src/sys/miscfs/overlay/
Doverlay_vfsops.c223 if (vrefcnt(overlay_rootvp) > 1 && (mntflags & MNT_FORCE) == 0) in ov_unmount()
/netbsd/src/sys/miscfs/fdesc/
Dfdesc_vfsops.c122 if (vrefcnt(rtvp) > 1 && (mntflags & MNT_FORCE) == 0) in fdesc_unmount()
/netbsd/src/sys/fs/udf/
Dudf_vfsops.c448 if (vrefcnt(vp) > 1) in udf_sanity_selector()
449 printf(" more than one usecount %d\n", vrefcnt(vp)); in udf_sanity_selector()
/netbsd/src/sys/ufs/mfs/
Dmfs_vnops.c145 if (vp->v_type != VBLK || vrefcnt(vp) == 0) in mfs_strategy()
/netbsd/src/sys/miscfs/umapfs/
Dumap_vfsops.c282 if (vrefcnt(rtvp) > 1 && (mntflags & MNT_FORCE) == 0) in umapfs_unmount()
/netbsd/src/sys/rump/librump/rumpvfs/
Drump_vfs.c383 return vrefcnt(vp); in rump_vp_getref()
/netbsd/src/sys/sys/
Dvnode.h615 int vrefcnt(struct vnode *);
/netbsd/src/external/cddl/osnet/sys/sys/
Dvnode.h164 if (vrefcnt(v) == 0) { \
/netbsd/src/external/cddl/osnet/dist/uts/common/fs/zfs/
Dzfs_ctldir.c791 KASSERT(vrefcnt(*vpp) > 1, ("unreferenced mountpoint")); in zfsctl_mounted_here()
894 KASSERT(vrefcnt(*vpp) > 1, ("found unreferenced mountpoint"));
1249 KASSERT_IMPLY(error == 0, vrefcnt(vp) == 1, in zfsctl_umount_snapshots()
/netbsd/src/sys/nfs/
Dnfs_vnops.c1710 if (vrefcnt(vp) < 1) in nfs_remove()
1715 else if (vrefcnt(vp) == 1 || (np->n_sillyrename && in nfs_remove()
1843 if (tvp && vrefcnt(tvp) > 1 && !VTONFS(tvp)->n_sillyrename && in nfs_rename()
3413 if (vrefcnt(vp) == 1 && in nfsspec_close()
3497 if (vrefcnt(vp) == 1 && in nfsfifo_close()
/netbsd/src/sys/ufs/lfs/
Dlfs_vnops.c1298 if (vrefcnt(vp) > 1 && vp != ip->i_lfs->lfs_ivnode) { in lfs_close()
1325 if (vrefcnt(vp) > 1) { in lfsspec_close()
1352 if (vrefcnt(ap->a_vp) > 1) { in lfsfifo_close()
/netbsd/src/sys/fs/msdosfs/
Dmsdosfs_denode.c615 vrefcnt(vp), dep->de_Name[0]); in msdosfs_inactive()
Dmsdosfs_vnops.c176 if (vrefcnt(vp) > 1) in msdosfs_close()
729 dep, vrefcnt(ap->a_vp)); in msdosfs_remove()
/netbsd/src/sys/ufs/ufs/
Dufs_vnops.c258 if (vrefcnt(vp) > 1) in ufs_close()
2008 if (vrefcnt(vp) > 1) in ufsspec_close()
2069 if (vrefcnt(ap->a_vp) > 1) in ufsfifo_close()
/netbsd/src/sys/fs/ptyfs/
Dptyfs_vnops.c776 if (vrefcnt(vp) > 1) in ptyfs_close()

12