aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-15 14:30:40 -0800
committerBrian Behlendorf <[email protected]>2009-01-15 14:30:40 -0800
commit94c2ebf6f0760ea3bdb0ceb8cf96e1c6de05bd75 (patch)
treea1604e9394e99cc1ccc1d7515704c2d69b6edfb8 /module
parentde66052064d4501d476e17b9691426b9e1e428d3 (diff)
parentcb55f9a83240f0142d573b48cc2be7669e8131ca (diff)
Merge commit 'refs/top-bases/linux-zpios' into linux-zpios
Diffstat (limited to 'module')
-rw-r--r--module/zfs/dsl_scrub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/dsl_scrub.c b/module/zfs/dsl_scrub.c
index dbdfe8c75..0ee2e0e4b 100644
--- a/module/zfs/dsl_scrub.c
+++ b/module/zfs/dsl_scrub.c
@@ -923,6 +923,7 @@ dsl_pool_scrub_clean_cb(dsl_pool_t *dp,
boolean_t needs_io;
int zio_flags = ZIO_FLAG_SCRUB_THREAD | ZIO_FLAG_RAW | ZIO_FLAG_CANFAIL;
int zio_priority;
+ int d;
ASSERT(bp->blk_birth > dp->dp_scrub_min_txg);
@@ -947,7 +948,7 @@ dsl_pool_scrub_clean_cb(dsl_pool_t *dp,
if (zb->zb_level == -1 && BP_GET_TYPE(bp) != DMU_OT_OBJSET)
zio_flags |= ZIO_FLAG_SPECULATIVE;
- for (int d = 0; d < BP_GET_NDVAS(bp); d++) {
+ for (d = 0; d < BP_GET_NDVAS(bp); d++) {
vdev_t *vd = vdev_lookup_top(spa,
DVA_GET_VDEV(&bp->blk_dva[d]));