FreeBSD/sys/fs/tmpfs/tmpfs_subr.c
/*
 * Destroys the association between the vnode vp and the node it
 * references.
 */
Destroys the association between the vnode vp and the node it
references.
Destroys the association between the vnode vp and the node it references .
void
tmpfs_free_vp(struct vnode *vp)
{
	struct tmpfs_node *node;
	node = VP_TO_TMPFS_NODE(vp);
	TMPFS_NODE_ASSERT_LOCKED(node);
	node->tn_vnode = NULL;
	if ((node->tn_vpstate & TMPFS_VNODE_WRECLAIM) != 0)
		wakeup(&node->tn_vnode);
	node->tn_vpstate &= ~TMPFS_VNODE_WRECLAIM;
	vp->v_data = NULL;
}
void tmpfs_free_vp ( struct vnode * vp ) { struct tmpfs_node * node ; node = VP_TO_TMPFS_NODE ( vp ) ; TMPFS_NODE_ASSERT_LOCKED ( node ) ; node -> tn_vnode = NULL ; if ( ( node -> tn_vpstate & TMPFS_VNODE_WRECLAIM ) != 0 ) wakeup ( & node -> tn_vnode ) ; node -> tn_vpstate &= ~ TMPFS_VNODE_WRECLAIM ; vp -> v_data = NULL ; }
Destroys the association between the vnode vp and the node it
 references.
Destroys the association between the vnode vp and the node it references .