Lines Matching refs:refcount
247 uint64_t refcount; in feature_get_refcount_from_disk() local
259 feature->fi_guid, sizeof (uint64_t), 1, &refcount); in feature_get_refcount_from_disk()
266 *res = refcount; in feature_get_refcount_from_disk()
296 feature_sync(spa_t *spa, zfeature_info_t *feature, uint64_t refcount, in feature_sync() argument
304 sizeof (uint64_t), 1, &refcount, tx)); in feature_sync()
317 atomic_swap_64(refcount_cache, refcount)); in feature_sync()
320 if (refcount == 0) in feature_sync()
391 uint64_t refcount; in feature_do_action() local
403 VERIFY3U(feature_get_refcount(spa, feature, &refcount), !=, ENOTSUP); in feature_do_action()
407 VERIFY3U(refcount, !=, UINT64_MAX); in feature_do_action()
408 refcount++; in feature_do_action()
411 VERIFY3U(refcount, !=, 0); in feature_do_action()
412 refcount--; in feature_do_action()
419 feature_sync(spa, feature, refcount, tx); in feature_do_action()
470 uint64_t refcount; in spa_feature_is_enabled() local
476 err = feature_get_refcount(spa, &spa_feature_table[fid], &refcount); in spa_feature_is_enabled()
485 uint64_t refcount; in spa_feature_is_active() local
491 err = feature_get_refcount(spa, &spa_feature_table[fid], &refcount); in spa_feature_is_active()
493 return (err == 0 && refcount > 0); in spa_feature_is_active()