MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spa_refcount_zero

Function spa_refcount_zero

freebsd/contrib/openzfs/module/zfs/spa_misc.c:914–920  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

912 * number of references acquired when opening a pool
913 */
914boolean_t
915spa_refcount_zero(spa_t *spa)
916{
917 ASSERT(MUTEX_HELD(&spa_namespace_lock));
918
919 return (zfs_refcount_count(&spa->spa_refcount) == spa->spa_minref);
920}
921
922/*
923 * ==========================================================================

Callers 1

spa_export_commonFunction · 0.85

Calls 1

zfs_refcount_countFunction · 0.85

Tested by

no test coverage detected