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()
295 feature_sync(spa_t *spa, zfeature_info_t *feature, uint64_t refcount, in feature_sync() argument
303 sizeof (uint64_t), 1, &refcount, tx)); in feature_sync()
316 atomic_swap_64(refcount_cache, refcount)); in feature_sync()
319 if (refcount == 0) in feature_sync()
377 uint64_t refcount; in feature_do_action() local
389 VERIFY3U(feature_get_refcount(spa, feature, &refcount), !=, ENOTSUP); in feature_do_action()
393 VERIFY3U(refcount, !=, UINT64_MAX); in feature_do_action()
394 refcount++; in feature_do_action()
397 VERIFY3U(refcount, !=, 0); in feature_do_action()
398 refcount--; in feature_do_action()
405 feature_sync(spa, feature, refcount, tx); in feature_do_action()
456 uint64_t refcount; in spa_feature_is_enabled() local
462 err = feature_get_refcount(spa, &spa_feature_table[fid], &refcount); in spa_feature_is_enabled()
471 uint64_t refcount; in spa_feature_is_active() local
477 err = feature_get_refcount(spa, &spa_feature_table[fid], &refcount); in spa_feature_is_active()
479 return (err == 0 && refcount > 0); in spa_feature_is_active()