* 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 */
| 912 | * number of references acquired when opening a pool |
| 913 | */ |
| 914 | boolean_t |
| 915 | spa_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 | * ========================================================================== |
no test coverage detected