Lines 2527-2533
vdev_hold(vdev_t *vd)
Link Here
|
2527 |
for (int c = 0; c < vd->vdev_children; c++) |
2527 |
for (int c = 0; c < vd->vdev_children; c++) |
2528 |
vdev_hold(vd->vdev_child[c]); |
2528 |
vdev_hold(vd->vdev_child[c]); |
2529 |
|
2529 |
|
2530 |
if (vd->vdev_ops->vdev_op_leaf) |
2530 |
if (vd->vdev_ops->vdev_op_leaf && vd->vdev_ops->vdev_op_hold != NULL) |
2531 |
vd->vdev_ops->vdev_op_hold(vd); |
2531 |
vd->vdev_ops->vdev_op_hold(vd); |
2532 |
} |
2532 |
} |
2533 |
|
2533 |
|
Lines 2538-2544
vdev_rele(vdev_t *vd)
Link Here
|
2538 |
for (int c = 0; c < vd->vdev_children; c++) |
2538 |
for (int c = 0; c < vd->vdev_children; c++) |
2539 |
vdev_rele(vd->vdev_child[c]); |
2539 |
vdev_rele(vd->vdev_child[c]); |
2540 |
|
2540 |
|
2541 |
if (vd->vdev_ops->vdev_op_leaf) |
2541 |
if (vd->vdev_ops->vdev_op_leaf && vd->vdev_ops->vdev_op_rele != NULL) |
2542 |
vd->vdev_ops->vdev_op_rele(vd); |
2542 |
vd->vdev_ops->vdev_op_rele(vd); |
2543 |
} |
2543 |
} |
2544 |
|
2544 |
|