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

Lines Matching refs:txg

1294 vdev_metaslab_init(vdev_t *vd, uint64_t txg)
1305 ASSERT(txg == 0 || spa_config_held(spa, SCL_ALLOC, RW_WRITER));
1334 if (txg == 0 && vd->vdev_ms_array != 0) {
1356 error = metaslab_init(vd->vdev_mg, m, object, txg,
1365 if (txg == 0)
1377 if (txg == 0)
1904 uint64_t txg;
1923 * was modified at a point after the current txg.
1924 * If config lock is not held do not check for the txg. spa_sync could
1929 txg = UINT64_MAX;
1931 txg = spa_last_synced_txg(spa);
1933 if ((label = vdev_label_read_config(vd, txg)) == NULL) {
1937 "txg %llu", (u_longlong_t)txg);
2300 vdev_create(vdev_t *vd, uint64_t txg, boolean_t isreplacing)
2320 (error = vdev_label_init(vd, txg, isreplacing ?
2429 vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg)
2438 (void) txg_list_add(&vd->vdev_ms_list, arg, txg);
2441 (void) txg_list_add(&vd->vdev_dtl_list, arg, txg);
2443 (void) txg_list_add(&vd->vdev_spa->spa_vdev_txg_list, vd, txg);
2447 vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg)
2450 vdev_dirty_leaves(vd->vdev_child[c], flags, txg);
2453 vdev_dirty(vd->vdev_top, flags, vd, txg);
2495 vdev_dtl_dirty(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size)
2504 if (!range_tree_contains(rt, txg, size))
2505 range_tree_add(rt, txg, size);
2510 vdev_dtl_contains(vdev_t *vd, vdev_dtl_type_t t, uint64_t txg, uint64_t size)
2531 dirty = range_tree_contains(rt, txg, size);
2566 * Returns the lowest txg in the DTL range.
2582 * Returns the highest txg in the DTL.
2623 * value to the highest txg value that exists in all DTLs. If this
2641 vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, int scrub_done)
2650 vdev_dtl_reassess(vd->vdev_child[c], txg,
2682 * that each txg in that range has refcnt -1 or 0.
2724 if (txg != 0)
2725 vdev_dirty(vd->vdev_top, VDD_DTL, vd, txg);
2858 vdev_dtl_sync(vdev_t *vd, uint64_t txg)
2870 tx = dmu_tx_create_assigned(spa->spa_dsl_pool, txg);
2922 vdev_dbgmsg(vd, "txg %llu, spa %s, DTL old object %llu, "
2923 "new object %llu", (u_longlong_t)txg, spa_name(spa),
2967 * Determine if resilver is needed, and if so the txg range.
3218 vdev_remove_empty_log(vdev_t *vd, uint64_t txg)
3224 ASSERT3U(txg, ==, spa_syncing_txg(spa));
3226 dmu_tx_t *tx = dmu_tx_create_assigned(spa_get_dsl(spa), txg);
3238 vdev_sync_done(vdev_t *vd, uint64_t txg)
3241 boolean_t reassess = !txg_list_empty(&vd->vdev_ms_list, TXG_CLEAN(txg));
3245 while ((msp = txg_list_remove(&vd->vdev_ms_list, TXG_CLEAN(txg)))
3247 metaslab_sync_done(msp, txg);
3254 vdev_sync(vdev_t *vd, uint64_t txg)
3260 ASSERT3U(txg, ==, spa->spa_syncing_txg);
3261 dmu_tx_t *tx = dmu_tx_create_assigned(spa->spa_dsl_pool, txg);
3273 ASSERT(txg_list_empty(&vd->vdev_ms_list, txg));
3274 ASSERT(txg_list_empty(&vd->vdev_dtl_list, txg));
3292 while ((msp = txg_list_remove(&vd->vdev_ms_list, txg)) != NULL) {
3293 metaslab_sync(msp, txg);
3294 (void) txg_list_add(&vd->vdev_ms_list, msp, TXG_CLEAN(txg));
3297 while ((lvd = txg_list_remove(&vd->vdev_dtl_list, txg)) != NULL)
3298 vdev_dtl_sync(lvd, txg);
3305 vdev_remove_empty_log(vd, txg);
3307 (void) txg_list_add(&spa->spa_vdev_txg_list, vd, TXG_CLEAN(txg));
3859 uint64_t txg = zio->io_txg;
3951 type == ZIO_TYPE_WRITE && txg != 0 &&
3958 * made by zil_claim() during spa_load() in the first txg.
3960 * txg as the block was born. In the scrub-induced repair
3971 uint64_t commit_txg = txg;
3975 vdev_dtl_dirty(vd, DTL_SCRUB, txg, 1);
3982 if (vdev_dtl_contains(vd, DTL_MISSING, txg, 1))
3985 vdev_dtl_dirty(pvd, DTL_PARTIAL, txg, 1);
3989 vdev_dtl_dirty(vd, DTL_MISSING, txg, 1);
4445 vdev_expand(vdev_t *vd, uint64_t txg)
4456 VERIFY(vdev_metaslab_init(vd, txg) == 0);