Lines Matching refs:txg

3667 	uint64_t txg = ub->ub_txg;  in spa_activity_check()  local
3730 if (txg != ub->ub_txg || timestamp != ub->ub_timestamp || in spa_activity_check()
3736 (u_longlong_t)txg, (u_longlong_t)ub->ub_txg, in spa_activity_check()
6402 uint64_t txg = TXG_INITIAL; local
6492 spa->spa_first_txg = txg;
6493 spa->spa_uberblock.ub_txg = txg - 1;
6527 (error = vdev_create(rvd, txg, B_FALSE)) == 0 &&
6529 (error = spa_validate_aux(spa, nvroot, txg, VDEV_ALLOC_ADD)) == 0) {
6538 vdev_expand(vd, txg);
6584 spa->spa_dsl_pool = dp = dsl_pool_create(spa, zplprops, dcp, txg);
6598 tx = dmu_tx_create_assigned(dp, txg);
6685 txg_wait_synced(dp, txg);
7276 uint64_t txg, ndraid = 0; local
7285 txg = spa_vdev_enter(spa);
7289 return (spa_vdev_exit(spa, NULL, txg, error));
7302 return (spa_vdev_exit(spa, vd, txg, EINVAL));
7305 (error = vdev_create(vd, txg, B_FALSE)) != 0) {
7306 return (spa_vdev_exit(spa, vd, txg, error));
7320 return (spa_vdev_exit(spa, vd, txg, error));
7327 if ((error = spa_validate_aux(spa, nvroot, txg, VDEV_ALLOC_ADD)) != 0)
7328 return (spa_vdev_exit(spa, vd, txg, error));
7342 return (spa_vdev_exit(spa, vd, txg, EINVAL));
7346 return (spa_vdev_exit(spa, vd, txg, EINVAL));
7358 txg, EINVAL));
7369 return (spa_vdev_exit(spa, vd, txg,
7404 tx = dmu_tx_create_assigned(spa->spa_dsl_pool, txg);
7423 (void) spa_vdev_exit(spa, vd, txg, 0);
7531 uint64_t txg, dtl_max_txg; local
7541 txg = spa_vdev_enter(spa);
7549 return (spa_vdev_exit(spa, NULL, txg, error));
7554 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
7558 return (spa_vdev_exit(spa, NULL, txg,
7563 return (spa_vdev_exit(spa, NULL, txg,
7568 return (spa_vdev_exit(spa, NULL, txg,
7573 return (spa_vdev_exit(spa, NULL, txg, ENODEV));
7579 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
7585 return (spa_vdev_exit(spa, NULL, txg,
7589 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
7599 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
7602 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL));
7607 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL));
7609 if ((error = vdev_create(newrootvd, txg, replacing)) != 0)
7610 return (spa_vdev_exit(spa, newrootvd, txg, error));
7617 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7625 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7641 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7654 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7665 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7677 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7680 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7686 return (spa_vdev_exit(spa, newrootvd, txg, EEXIST));
7700 return (spa_vdev_exit(spa, newrootvd, txg, EOVERFLOW));
7707 return (spa_vdev_exit(spa, newrootvd, txg,
7716 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP));
7724 return (spa_vdev_exit(spa, newrootvd, txg,
7730 return (spa_vdev_exit(spa, newrootvd, txg,
7805 dtl_max_txg = txg + TXG_CONCURRENT_STATES;
7813 txg + TXG_CONCURRENT_STATES + TXG_DEFER_SIZE, 0, FTAG);
7845 vdev_dirty(tvd, VDD_DTL, newvd, txg);
7853 newvd->vdev_rebuild_txg = txg;
7857 newvd->vdev_resilver_txg = txg;
7901 uint64_t txg; local
7911 txg = spa_vdev_detach_enter(spa, guid);
7933 return (spa_vdev_exit(spa, NULL, txg, error));
7937 return (spa_vdev_exit(spa, NULL, txg, ENODEV));
7940 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
7958 return (spa_vdev_exit(spa, NULL, txg, EBUSY));
7965 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
7976 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP));
7983 return (spa_vdev_exit(spa, NULL, txg, EBUSY));
8096 vdev_expand(tvd, txg);
8111 vdev_dirty(tvd, VDD_DTL, vd, txg);
8119 error = spa_vdev_exit(spa, vd, txg, 0);
8406 uint64_t txg, *glist; local
8417 txg = spa_vdev_enter(spa);
8423 return (spa_vdev_exit(spa, NULL, txg, error));
8428 (void) spa_vdev_config_exit(spa, NULL, txg, 0, FTAG);
8430 txg = spa_vdev_config_enter(spa);
8436 return (spa_vdev_exit(spa, NULL, txg, error));
8440 return (spa_vdev_exit(spa, NULL, txg, EEXIST));
8448 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
8467 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
8472 return (spa_vdev_exit(spa, NULL, txg, EINVAL));
8557 return (spa_vdev_exit(spa, NULL, txg, error));
8600 spa_vdev_config_exit(spa, NULL, txg, 0, FTAG);
8666 txg = spa_vdev_config_enter(newspa);
8668 (void) spa_vdev_config_exit(newspa, NULL, txg, 0, FTAG);
8676 txg = spa_vdev_config_enter(spa);
8709 (void) spa_vdev_exit(spa, NULL, txg, 0);
8733 txg = spa_vdev_config_enter(spa);
8750 (void) spa_vdev_exit(spa, NULL, txg, error);
10000 uint64_t txg = tx->tx_txg; local
10001 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK];
10011 spa_errlog_sync(spa, txg);
10012 dsl_pool_sync(dp, txg);
10033 brt_sync(spa, txg);
10034 ddt_sync(spa, txg);
10043 while ((vd = txg_list_remove(&spa->spa_vdev_txg_list, txg))
10045 vdev_sync(vd, txg);
10078 BP_GET_LOGICAL_BIRTH(&spa->spa_uberblock.ub_rootbp) < txg &&
10079 !dmu_objset_is_dirty(mos, txg)) {
10085 ASSERT(txg_list_empty(&dp->dp_dirty_datasets, txg));
10086 ASSERT(txg_list_empty(&dp->dp_dirty_dirs, txg));
10087 ASSERT(txg_list_empty(&dp->dp_sync_tasks, txg));
10088 ASSERT(txg_list_empty(&dp->dp_early_sync_tasks, txg));
10093 } while (dmu_objset_is_dirty(mos, txg));
10109 uint64_t txg = tx->tx_txg; local
10143 error = vdev_config_sync(svd, svdcount, txg);
10146 rvd->vdev_children, txg);
10166 spa_sync(spa_t *spa, uint64_t txg) argument
10176 (void) zio_wait(spa->spa_txg_zio[txg & TXG_MASK]);
10177 spa->spa_txg_zio[txg & TXG_MASK] = zio_root(spa, NULL, NULL,
10185 brt_pending_apply(spa, txg);
10192 spa->spa_syncing_txg = txg;
10226 dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg);
10280 ASSERT0(spa->spa_vdev_removal->svr_bytes_done[txg & TXG_MASK]);
10301 spa->spa_config_txg = txg;
10305 dsl_pool_sync_done(dp, txg);
10310 while ((vd = txg_list_remove(&spa->spa_vdev_txg_list, TXG_CLEAN(txg)))
10312 vdev_sync_done(vd, txg);
10314 metaslab_class_evict_old(spa->spa_normal_class, txg);
10315 metaslab_class_evict_old(spa->spa_log_class, txg);
10317 metaslab_class_evict_old(spa->spa_special_class, txg);
10318 metaslab_class_evict_old(spa->spa_dedup_class, txg);
10331 ASSERT(txg_list_empty(&dp->dp_dirty_datasets, txg));
10332 ASSERT(txg_list_empty(&dp->dp_dirty_dirs, txg));
10333 ASSERT(txg_list_empty(&spa->spa_vdev_txg_list, txg));