Lines Matching refs:txg

3483 	uint64_t txg = TXG_INITIAL;  in spa_create()  local
3526 spa->spa_first_txg = txg; in spa_create()
3527 spa->spa_uberblock.ub_txg = txg - 1; in spa_create()
3556 (error = vdev_create(rvd, txg, B_FALSE)) == 0 && in spa_create()
3557 (error = spa_validate_aux(spa, nvroot, txg, in spa_create()
3561 vdev_expand(rvd->vdev_child[c], txg); in spa_create()
3606 spa->spa_dsl_pool = dp = dsl_pool_create(spa, zplprops, txg); in spa_create()
3617 tx = dmu_tx_create_assigned(dp, txg); in spa_create()
3695 txg_wait_synced(spa->spa_dsl_pool, txg); in spa_create()
3765 spa_alt_rootvdev(vdev_t *vd, vdev_t **avd, uint64_t *txg) in spa_alt_rootvdev() argument
3768 spa_alt_rootvdev(vd->vdev_child[c], avd, txg); in spa_alt_rootvdev()
3784 if (label_txg > *txg) { in spa_alt_rootvdev()
3785 *txg = label_txg; in spa_alt_rootvdev()
3810 uint64_t guid, txg; in spa_import_rootpool() local
3835 VERIFY(nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_TXG, &txg) == 0); in spa_import_rootpool()
3881 spa_alt_rootvdev(rvd, &avd, &txg); in spa_import_rootpool()
4345 uint64_t txg, id; in spa_vdev_add() local
4354 txg = spa_vdev_enter(spa); in spa_vdev_add()
4358 return (spa_vdev_exit(spa, NULL, txg, error)); in spa_vdev_add()
4371 return (spa_vdev_exit(spa, vd, txg, EINVAL)); in spa_vdev_add()
4374 (error = vdev_create(vd, txg, B_FALSE)) != 0) in spa_vdev_add()
4375 return (spa_vdev_exit(spa, vd, txg, error)); in spa_vdev_add()
4381 if ((error = spa_validate_aux(spa, nvroot, txg, VDEV_ALLOC_ADD)) != 0) in spa_vdev_add()
4382 return (spa_vdev_exit(spa, vd, txg, error)); in spa_vdev_add()
4432 (void) spa_vdev_exit(spa, vd, txg, 0); in spa_vdev_add()
4457 uint64_t txg, dtl_max_txg; in spa_vdev_attach() local
4467 txg = spa_vdev_enter(spa); in spa_vdev_attach()
4472 return (spa_vdev_exit(spa, NULL, txg, ENODEV)); in spa_vdev_attach()
4475 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP)); in spa_vdev_attach()
4481 return (spa_vdev_exit(spa, NULL, txg, EINVAL)); in spa_vdev_attach()
4484 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL)); in spa_vdev_attach()
4489 return (spa_vdev_exit(spa, newrootvd, txg, EINVAL)); in spa_vdev_attach()
4491 if ((error = vdev_create(newrootvd, txg, replacing)) != 0) in spa_vdev_attach()
4492 return (spa_vdev_exit(spa, newrootvd, txg, error)); in spa_vdev_attach()
4498 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4507 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4518 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4530 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4533 return (spa_vdev_exit(spa, newrootvd, txg, ENOTSUP)); in spa_vdev_attach()
4546 return (spa_vdev_exit(spa, newrootvd, txg, EOVERFLOW)); in spa_vdev_attach()
4553 return (spa_vdev_exit(spa, newrootvd, txg, EDOM)); in spa_vdev_attach()
4572 newvd->vdev_resilver_txg = txg; in spa_vdev_attach()
4604 dtl_max_txg = txg + TXG_CONCURRENT_STATES; in spa_vdev_attach()
4621 vdev_dirty(tvd, VDD_DTL, newvd, txg); in spa_vdev_attach()
4659 uint64_t txg; in spa_vdev_detach() local
4669 txg = spa_vdev_enter(spa); in spa_vdev_detach()
4674 return (spa_vdev_exit(spa, NULL, txg, ENODEV)); in spa_vdev_detach()
4677 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP)); in spa_vdev_detach()
4695 return (spa_vdev_exit(spa, NULL, txg, EBUSY)); in spa_vdev_detach()
4702 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP)); in spa_vdev_detach()
4713 return (spa_vdev_exit(spa, NULL, txg, ENOTSUP)); in spa_vdev_detach()
4720 return (spa_vdev_exit(spa, NULL, txg, EBUSY)); in spa_vdev_detach()
4828 vdev_expand(tvd, txg); in spa_vdev_detach()
4843 vdev_dirty(tvd, VDD_DTL, vd, txg); in spa_vdev_detach()
4850 error = spa_vdev_exit(spa, vd, txg, 0); in spa_vdev_detach()
4898 uint64_t txg, *glist; in spa_vdev_split_mirror() local
4909 txg = spa_vdev_enter(spa); in spa_vdev_split_mirror()
4913 (void) spa_vdev_config_exit(spa, NULL, txg, 0, FTAG); in spa_vdev_split_mirror()
4915 txg = spa_vdev_config_enter(spa); in spa_vdev_split_mirror()
4921 return (spa_vdev_exit(spa, NULL, txg, error)); in spa_vdev_split_mirror()
4925 return (spa_vdev_exit(spa, NULL, txg, EEXIST)); in spa_vdev_split_mirror()
4933 return (spa_vdev_exit(spa, NULL, txg, EINVAL)); in spa_vdev_split_mirror()
4951 return (spa_vdev_exit(spa, NULL, txg, EINVAL)); in spa_vdev_split_mirror()
4956 return (spa_vdev_exit(spa, NULL, txg, EINVAL)); in spa_vdev_split_mirror()
5025 return (spa_vdev_exit(spa, NULL, txg, error)); in spa_vdev_split_mirror()
5070 spa_vdev_config_exit(spa, NULL, txg, 0, FTAG); in spa_vdev_split_mirror()
5102 txg = spa_vdev_config_enter(newspa); in spa_vdev_split_mirror()
5104 (void) spa_vdev_config_exit(newspa, NULL, txg, 0, FTAG); in spa_vdev_split_mirror()
5112 txg = spa_vdev_config_enter(spa); in spa_vdev_split_mirror()
5131 (void) spa_vdev_exit(spa, NULL, txg, 0); in spa_vdev_split_mirror()
5154 txg = spa_vdev_config_enter(spa); in spa_vdev_split_mirror()
5165 (void) spa_vdev_exit(spa, NULL, txg, error); in spa_vdev_split_mirror()
5218 uint64_t txg; in spa_vdev_remove_evacuate() local
5246 txg = spa_vdev_config_enter(spa); in spa_vdev_remove_evacuate()
5248 vdev_dirty_leaves(vd, VDD_DTL, txg); in spa_vdev_remove_evacuate()
5250 spa_vdev_config_exit(spa, NULL, txg, 0, FTAG); in spa_vdev_remove_evacuate()
5316 uint64_t txg = 0; in spa_vdev_remove() local
5324 txg = spa_vdev_enter(spa); in spa_vdev_remove()
5371 txg + TXG_CONCURRENT_STATES + TXG_DEFER_SIZE, 0, FTAG); in spa_vdev_remove()
5378 txg = spa_vdev_config_enter(spa); in spa_vdev_remove()
5385 return (spa_vdev_exit(spa, NULL, txg, error)); in spa_vdev_remove()
5406 return (spa_vdev_exit(spa, NULL, txg, error)); in spa_vdev_remove()
6230 spa_sync(spa_t *spa, uint64_t txg) in spa_sync() argument
6234 bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK]; in spa_sync()
6247 spa->spa_syncing_txg = txg; in spa_sync()
6274 tx = dmu_tx_create_assigned(dp, txg); in spa_sync()
6312 spa_errlog_sync(spa, txg); in spa_sync()
6313 dsl_pool_sync(dp, txg); in spa_sync()
6327 ddt_sync(spa, txg); in spa_sync()
6330 while (vd = txg_list_remove(&spa->spa_vdev_txg_list, txg)) in spa_sync()
6331 vdev_sync(vd, txg); in spa_sync()
6335 ASSERT3U(txg, >=, in spa_sync()
6348 if (spa->spa_uberblock.ub_rootbp.blk_birth < txg && in spa_sync()
6349 !dmu_objset_is_dirty(mos, txg)) { in spa_sync()
6357 txg)); in spa_sync()
6358 ASSERT(txg_list_empty(&dp->dp_dirty_dirs, txg)); in spa_sync()
6359 ASSERT(txg_list_empty(&dp->dp_sync_tasks, txg)); in spa_sync()
6365 } while (dmu_objset_is_dirty(mos, txg)); in spa_sync()
6397 error = vdev_config_sync(svd, svdcount, txg, B_FALSE); in spa_sync()
6399 error = vdev_config_sync(svd, svdcount, txg, in spa_sync()
6403 rvd->vdev_children, txg, B_FALSE); in spa_sync()
6406 rvd->vdev_children, txg, B_TRUE); in spa_sync()
6435 spa->spa_config_txg = txg; in spa_sync()
6441 dsl_pool_sync_done(dp, txg); in spa_sync()
6446 while (vd = txg_list_remove(&spa->spa_vdev_txg_list, TXG_CLEAN(txg))) in spa_sync()
6447 vdev_sync_done(vd, txg); in spa_sync()
6455 ASSERT(txg_list_empty(&dp->dp_dirty_datasets, txg)); in spa_sync()
6456 ASSERT(txg_list_empty(&dp->dp_dirty_dirs, txg)); in spa_sync()
6457 ASSERT(txg_list_empty(&spa->spa_vdev_txg_list, txg)); in spa_sync()