MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_dirty

Function vdev_dirty

freebsd/contrib/openzfs/module/zfs/vdev.c:2562–2578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2560}
2561
2562void
2563vdev_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
2580void
2581vdev_dirty_leaves(vdev_t *vd, int flags, uint64_t txg)

Callers 14

metaslab_initFunction · 0.85
metaslab_sync_doneFunction · 0.85
metaslab_block_allocFunction · 0.85
metaslab_free_concreteFunction · 0.85
metaslab_claim_concreteFunction · 0.85
vdev_dirty_leavesFunction · 0.85
vdev_dtl_reassessFunction · 0.85
vdev_stat_updateFunction · 0.85
spa_vdev_attachFunction · 0.85
spa_vdev_detachFunction · 0.85

Calls 3

vdev_is_concreteFunction · 0.85
spa_writeableFunction · 0.85
txg_list_addFunction · 0.85

Tested by

no test coverage detected