FreeBSD/sys/fs/unionfs/union_subr.c
/*
 * Remove the unionfs node status, if you can.
 * You need exclusive lock this vnode.
 */
Remove the unionfs node status, if you can.
You need exclusive lock this vnode.
Remove the unionfs node status if you can . You need exclusive lock this vnode .
void
unionfs_tryrem_node_status(struct unionfs_node *unp,
			   struct unionfs_node_status *unsp)
{
	KASSERT(NULL != unsp, ("null pointer"));
	ASSERT_VOP_ELOCKED(UNIONFSTOV(unp), "unionfs_get_node_status");
	if (0 < unsp->uns_lower_opencnt || 0 < unsp->uns_upper_opencnt)
		return;
	LIST_REMOVE(unsp, uns_list);
	free(unsp, M_TEMP);
}
void unionfs_tryrem_node_status ( struct unionfs_node * unp , struct unionfs_node_status * unsp ) { KASSERT ( NULL != unsp , ( " " ) ) ; ASSERT_VOP_ELOCKED ( UNIONFSTOV ( unp ) , " " ) ; if ( 0 < unsp -> uns_lower_opencnt || 0 < unsp -> uns_upper_opencnt ) return ; LIST_REMOVE ( unsp , uns_list ) ; free ( unsp , M_TEMP ) ; }
Remove the unionfs node status, if you can.
Remove the unionfs node status if you can .