FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
/*
 * Check to see if the spa refcount is zero.  Must be called with
 * spa_namespace_lock held.  We really compare against spa_minref, which is the
 * number of references acquired when opening a pool
 */
Check to see if the spa refcount is zero.  Must be called with
spa_namespace_lock held.  We really compare against spa_minref, which is the
number of references acquired when opening a pool
Check to see if the spa refcount is zero . Must be called with spa_namespace_lock held . We really compare against spa_minref which is the number of references acquired when opening a pool
boolean_t
spa_refcount_zero(spa_t *spa)
{
	ASSERT(MUTEX_HELD(&spa_namespace_lock));
	return (refcount_count(&spa->spa_refcount) == spa->spa_minref);
}
boolean_t spa_refcount_zero ( spa_t * spa ) { ASSERT ( MUTEX_HELD ( & spa_namespace_lock ) ) ; return ( refcount_count ( & spa -> spa_refcount ) == spa -> spa_minref ) ; }
Check to see if the spa refcount is zero.
Check to see if the spa refcount is zero .