Lines Matching defs:txg
75 * txg (dp_dirty_pertxg[]) and poolwide (dp_dirty_total) accounting of
78 * relevant, the per-txg value is useful for debugging. The tunable
83 * ensure that there is a txg syncing (see the comment in txg.c for a full
103 * If there is at least this much dirty data, push out a txg.
149 dsl_pool_open_impl(spa_t *spa, uint64_t txg)
158 txg_init(dp, txg);
179 dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp)
182 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
340 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg)
343 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
344 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg);
361 VERIFY0(dsl_scan_init(dp, txg));
456 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg)
468 tx = dmu_tx_create_assigned(dp, txg);
474 while ((ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) != NULL) {
493 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg);
512 while ((ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) != NULL) {
529 while ((dd = txg_list_remove(&dp->dp_dirty_dirs, txg)) != NULL) {
549 if (list_head(&mos->os_dirty_dnodes[txg & TXG_MASK]) != NULL ||
550 list_head(&mos->os_free_dnodes[txg & TXG_MASK]) != NULL) {
555 * If we modify a dataset in the same txg that we want to destroy it,
563 if (!txg_list_empty(&dp->dp_sync_tasks, txg)) {
570 while ((dst = txg_list_remove(&dp->dp_sync_tasks, txg)) != NULL)
576 DTRACE_PROBE2(dsl_pool_sync__done, dsl_pool_t *dp, dp, uint64_t, txg);
580 dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg)
584 while (zilog = txg_list_head(&dp->dp_dirty_zilogs, txg)) {
592 zil_clean(zilog, txg);
593 (void) txg_list_remove_this(&dp->dp_dirty_zilogs, zilog, txg);
594 ASSERT(!dmu_objset_is_dirty(zilog->zl_os, txg));
597 ASSERT(!dmu_objset_is_dirty(dp->dp_meta_objset, txg));
656 dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg)
662 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) {
664 space = dp->dp_dirty_pertxg[txg & TXG_MASK];
666 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space);
667 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space;