| 2560 | } |
| 2561 | |
| 2562 | void |
| 2563 | vdev_dirty(vdev_t *vd, int flags, void *arg, uint64_t txg) |
| 2564 | { |
| 2565 | ASSERT(vd == vd->vdev_top); |
| 2566 | /* indirect vdevs don't have metaslabs or dtls */ |
| 2567 | ASSERT(vdev_is_concrete(vd) || flags == 0); |
| 2568 | ASSERT(ISP2(flags)); |
| 2569 | ASSERT(spa_writeable(vd->vdev_spa)); |
| 2570 | |
| 2571 | if (flags & VDD_METASLAB) |
| 2572 | (void) txg_list_add(&vd->vdev_ms_list, arg, txg); |
| 2573 | |
| 2574 | if (flags & VDD_DTL) |
| 2575 | (void) txg_list_add(&vd->vdev_dtl_list, arg, txg); |
| 2576 | |
| 2577 | (void) txg_list_add(&vd->vdev_spa->spa_vdev_txg_list, vd, txg); |
| 2578 | } |
| 2579 | |
| 2580 | void |
| 2581 | vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg) |
no test coverage detected