Lines Matching defs:fid
402 feature_do_action(spa_t *spa, spa_feature_t fid, feature_action_t action,
406 zfeature_info_t *feature = &spa_feature_table[fid];
411 ASSERT(VALID_FEATURE_FID(fid));
462 spa_feature_enable(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx)
465 ASSERT(VALID_FEATURE_FID(fid));
466 feature_enable_sync(spa, &spa_feature_table[fid], tx);
470 spa_feature_incr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx)
472 feature_do_action(spa, fid, FEATURE_ACTION_INCR, tx);
476 spa_feature_decr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx)
478 feature_do_action(spa, fid, FEATURE_ACTION_DECR, tx);
482 spa_feature_is_enabled(spa_t *spa, spa_feature_t fid)
487 ASSERT(VALID_FEATURE_FID(fid));
491 err = feature_get_refcount(spa, &spa_feature_table[fid], &refcount);
497 spa_feature_is_active(spa_t *spa, spa_feature_t fid)
502 ASSERT(VALID_FEATURE_FID(fid));
506 err = feature_get_refcount(spa, &spa_feature_table[fid], &refcount);
512 * For the feature specified by fid (which must depend on
521 spa_feature_enabled_txg(spa_t *spa, spa_feature_t fid, uint64_t *txg)
525 ASSERT(VALID_FEATURE_FID(fid));
529 err = feature_get_enabled_txg(spa, &spa_feature_table[fid], txg);