• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/zfs/

Lines Matching defs:txg

78  * txg (dp_dirty_pertxg[]) and poolwide (dp_dirty_total) accounting of
81 * relevant, the per-txg value is useful for debugging. The tunable
86 * ensure that there is a txg syncing (see the comment in txg.c for a full
109 * zfs_dirty_data_max), push out a txg. This should be less than
187 dsl_pool_open_impl(spa_t *spa, uint64_t txg)
196 txg_init(dp, txg);
234 dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp)
237 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
459 uint64_t txg)
462 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
463 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg);
485 VERIFY0(dsl_scan_init(dp, txg));
597 dsl_early_sync_task_verify(dsl_pool_t *dp, uint64_t txg)
607 for (ms = txg_list_head(tl, TXG_CLEAN(txg)); ms;
608 ms = txg_list_next(tl, ms, TXG_CLEAN(txg))) {
619 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg)
631 tx = dmu_tx_create_assigned(dp, txg);
638 if (!txg_list_empty(&dp->dp_early_sync_tasks, txg)) {
643 txg_list_remove(&dp->dp_early_sync_tasks, txg)) != NULL) {
644 ASSERT(dsl_early_sync_task_verify(dp, txg));
647 ASSERT(dsl_early_sync_task_verify(dp, txg));
654 while ((ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) != NULL) {
672 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] == 0);
673 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] = 0;
696 while ((ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) != NULL) {
709 !os->os_next_write_raw[txg & TXG_MASK]) {
729 !os->os_next_write_raw[txg & TXG_MASK]) {
737 while ((dd = txg_list_remove(&dp->dp_dirty_dirs, txg)) != NULL) {
757 if (dmu_objset_is_dirty(mos, txg)) {
774 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg);
777 * If we modify a dataset in the same txg that we want to destroy it,
785 if (!txg_list_empty(&dp->dp_sync_tasks, txg)) {
792 while ((dst = txg_list_remove(&dp->dp_sync_tasks, txg)) != NULL)
798 DTRACE_PROBE2(dsl_pool_sync__done, dsl_pool_t *dp, dp, uint64_t, txg);
802 dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg)
806 while ((zilog = txg_list_head(&dp->dp_dirty_zilogs, txg))) {
814 zil_clean(zilog, txg);
815 (void) txg_list_remove_this(&dp->dp_dirty_zilogs, zilog, txg);
816 ASSERT(!dmu_objset_is_dirty(zilog->zl_os, txg));
819 ASSERT(!dmu_objset_is_dirty(dp->dp_meta_objset, txg));
925 dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg)
932 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) {
934 space = dp->dp_dirty_pertxg[txg & TXG_MASK];
936 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space);
937 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space;
1400 "Dirty data txg sync threshold as a percentage of zfs_dirty_data_max");