FreeBSD/sys/kern/vfs_mount.c
/*
 * Return error if any of the vnodes, ignoring the root vnode
 * and the syncer vnode, have non-zero usecount.
 */
Return error if any of the vnodes, ignoring the root vnode
and the syncer vnode, have non-zero usecount.
Return error if any of the vnodes ignoring the root vnode and the syncer vnode have non - zero usecount .
static int
vfs_check_usecounts(struct mount *mp)
{
	struct vnode *vp, *mvp;
	MNT_VNODE_FOREACH_ALL(vp, mp, mvp) {
		if ((vp->v_vflag & VV_ROOT) == 0 && vp->v_type != VNON &&
		    vp->v_usecount != 0) {
			VI_UNLOCK(vp);
			MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp);
			return (EBUSY);
		}
		VI_UNLOCK(vp);
	}
	return (0);
}
static int vfs_check_usecounts ( struct mount * mp ) { struct vnode * vp , * mvp ; MNT_VNODE_FOREACH_ALL ( vp , mp , mvp ) { if ( ( vp -> v_vflag & VV_ROOT ) == 0 && vp -> v_type != VNON && vp -> v_usecount != 0 ) { VI_UNLOCK ( vp ) ; MNT_VNODE_FOREACH_ALL_ABORT ( mp , mvp ) ; return ( EBUSY ) ; } VI_UNLOCK ( vp ) ; } return ( 0 ) ; }
Return error if any of the vnodes, ignoring the root vnode
 and the syncer vnode, have non-zero usecount.
Return error if any of the vnodes ignoring the root vnode and the syncer vnode have non - zero usecount .