Merge commit 'refs/top-bases/linux-legacy' into linux-legacy

This commit is contained in:
Brian Behlendorf 2009-01-15 15:30:31 -08:00
commit 20942db96a
1 changed files with 1 additions and 1 deletions

View File

@ -1461,7 +1461,7 @@ vdev_dtl_reassess(vdev_t *vd, uint64_t txg, uint64_t scrub_txg, int scrub_done)
else else
minref = vd->vdev_children; /* any kind of mirror */ minref = vd->vdev_children; /* any kind of mirror */
space_map_ref_create(&reftree); space_map_ref_create(&reftree);
for (int c = 0; c < vd->vdev_children; c++) { for (c = 0; c < vd->vdev_children; c++) {
vdev_t *cvd = vd->vdev_child[c]; vdev_t *cvd = vd->vdev_child[c];
mutex_enter(&cvd->vdev_dtl_lock); mutex_enter(&cvd->vdev_dtl_lock);
space_map_ref_add_map(&reftree, &cvd->vdev_dtl[t], 1); space_map_ref_add_map(&reftree, &cvd->vdev_dtl[t], 1);