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

Function vdev_rele

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

Source from the content-addressed store, hash-verified

2398}
2399
2400void
2401vdev_rele(vdev_t *vd)
2402{
2403 ASSERT(spa_is_root(vd->vdev_spa));
2404 for (int c = 0; c < vd->vdev_children; c++)
2405 vdev_rele(vd->vdev_child[c]);
2406
2407 if (vd->vdev_ops->vdev_op_leaf && vd->vdev_ops->vdev_op_rele != NULL)
2408 vd->vdev_ops->vdev_op_rele(vd);
2409}
2410
2411/*
2412 * Reopen all interior vdevs and any unopened leaves. We don't actually

Callers 1

spa_vdev_state_exitFunction · 0.85

Calls 1

spa_is_rootFunction · 0.85

Tested by

no test coverage detected