Lines Matching defs:txg
59 * pairs are of the form <key: txg, value: log space map object for that txg>.
213 * flushed per txg) and that's why making it a percentage in terms of the
220 * linearly from txg to txg (e.g. the oldest log should have the most
392 summary_entry_is_full(spa_t *spa, log_summary_entry_t *e, uint64_t txg)
394 if (e->lse_end == txg)
414 * for a txg as an argument so we can locate the appropriate summary entry for
418 spa_log_summary_decrement_mscount(spa_t *spa, uint64_t txg, boolean_t dirty)
430 if (e->lse_start > txg)
547 spa_log_sm_decrement_mscount(spa_t *spa, uint64_t txg)
549 spa_log_sm_t target = { .sls_txg = txg };
575 summary_add_data(spa_t *spa, uint64_t txg, uint64_t metaslabs_flushed,
580 if (e == NULL || summary_entry_is_full(spa, e, txg)) {
582 e->lse_start = e->lse_end = txg;
587 ASSERT3U(e->lse_start, <=, txg);
588 if (e->lse_end < txg) {
589 e->lse_end = txg;
610 spa_log_summary_dirty_flushed_metaslab(spa_t *spa, uint64_t txg)
615 if (e->lse_start > txg)
758 uint64_t txg = dmu_tx_get_txg(tx);
786 if (BP_GET_LOGICAL_BIRTH(&spa->spa_uberblock.ub_rootbp) < txg &&
787 !dmu_objset_is_dirty(spa_meta_objset(spa), txg) &&
836 * If this metaslab has been flushed this txg then we've done
839 if (metaslab_unflushed_txg(curr) == txg)
942 spa_log_sm_alloc(uint64_t sm_obj, uint64_t txg)
946 sls->sls_txg = txg;
953 uint64_t txg = dmu_tx_get_txg(tx);
979 ASSERT3U(zap_lookup_int_key(mos, spacemap_zap, txg, &sm_obj),
982 VERIFY0(zap_add_int_key(mos, spacemap_zap, txg, sm_obj, tx));
983 avl_add(&spa->spa_sm_logs_by_txg, spa_log_sm_alloc(sm_obj, txg));