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

Function vdev_config_clean

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

Source from the content-addressed store, hash-verified

4640}
4641
4642void
4643vdev_config_clean(vdev_t *vd)
4644{
4645 spa_t *spa = vd->vdev_spa;
4646
4647 ASSERT(spa_config_held(spa, SCL_CONFIG, RW_WRITER) ||
4648 (dsl_pool_sync_context(spa_get_dsl(spa)) &&
4649 spa_config_held(spa, SCL_CONFIG, RW_READER)));
4650
4651 ASSERT(list_link_active(&vd->vdev_config_dirty_node));
4652 list_remove(&spa->spa_config_dirty_list, vd);
4653}
4654
4655/*
4656 * Mark a top-level vdev's state as dirty, so that the next pass of

Callers 3

vdev_top_transferFunction · 0.85
spa_syncFunction · 0.85
spa_vdev_remove_logFunction · 0.85

Calls 5

spa_config_heldFunction · 0.85
dsl_pool_sync_contextFunction · 0.85
spa_get_dslFunction · 0.85
list_link_activeFunction · 0.50
list_removeFunction · 0.50

Tested by

no test coverage detected