• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/

Lines Matching refs:txg

84  * txg (dp_dirty_pertxg[]) and poolwide (dp_dirty_total) accounting of
87 * relevant, the per-txg value is useful for debugging. The tunable
92 * ensure that there is a txg syncing (see the comment in txg.c for a full
113 * zfs_dirty_data_max), push out a txg. This should be less than
198 "Force a txg if the percent of dirty buffer bytes exceed this value");
286 dsl_pool_open_impl(spa_t *spa, uint64_t txg)
295 txg_init(dp, txg);
329 dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp)
332 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
543 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg)
546 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
547 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg);
563 VERIFY0(dsl_scan_init(dp, txg));
661 dsl_early_sync_task_verify(dsl_pool_t *dp, uint64_t txg)
671 for (ms = txg_list_head(tl, TXG_CLEAN(txg)); ms;
672 ms = txg_list_next(tl, ms, TXG_CLEAN(txg))) {
682 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg)
694 tx = dmu_tx_create_assigned(dp, txg);
701 if (!txg_list_empty(&dp->dp_early_sync_tasks, txg)) {
706 txg_list_remove(&dp->dp_early_sync_tasks, txg)) != NULL) {
707 ASSERT(dsl_early_sync_task_verify(dp, txg));
710 ASSERT(dsl_early_sync_task_verify(dp, txg));
717 while ((ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) != NULL) {
736 dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg);
744 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] == 0);
745 dp->dp_long_free_dirty_pertxg[txg & TXG_MASK] = 0;
768 while ((ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) != NULL) {
785 while ((dd = txg_list_remove(&dp->dp_dirty_dirs, txg)) != NULL) {
805 if (!multilist_is_empty(mos->os_dirty_dnodes[txg & TXG_MASK])) {
810 * If we modify a dataset in the same txg that we want to destroy it,
818 if (!txg_list_empty(&dp->dp_sync_tasks, txg)) {
825 while ((dst = txg_list_remove(&dp->dp_sync_tasks, txg)) != NULL)
831 DTRACE_PROBE2(dsl_pool_sync__done, dsl_pool_t *dp, dp, uint64_t, txg);
835 dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg)
839 while (zilog = txg_list_head(&dp->dp_dirty_zilogs, txg)) {
847 zil_clean(zilog, txg);
848 (void) txg_list_remove_this(&dp->dp_dirty_zilogs, zilog, txg);
849 ASSERT(!dmu_objset_is_dirty(zilog->zl_os, txg));
852 ASSERT(!dmu_objset_is_dirty(dp->dp_meta_objset, txg));
958 dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg)
964 if (dp->dp_dirty_pertxg[txg & TXG_MASK] < space) {
966 space = dp->dp_dirty_pertxg[txg & TXG_MASK];
968 ASSERT3U(dp->dp_dirty_pertxg[txg & TXG_MASK], >=, space);
969 dp->dp_dirty_pertxg[txg & TXG_MASK] -= space;