Move int out of for construct for c90 compliance

This commit is contained in:
Brian Behlendorf 2008-12-18 09:01:48 -08:00
parent 7c63b600b1
commit d1684019b4
1 changed files with 3 additions and 1 deletions

View File

@ -843,6 +843,8 @@ dmu_objset_sync_dnodes(list_t *list, dmu_tx_t *tx)
static void static void
ready(zio_t *zio, arc_buf_t *abuf, void *arg) ready(zio_t *zio, arc_buf_t *abuf, void *arg)
{ {
int i;
blkptr_t *bp = zio->io_bp; blkptr_t *bp = zio->io_bp;
blkptr_t *bp_orig = &zio->io_bp_orig; blkptr_t *bp_orig = &zio->io_bp_orig;
objset_impl_t *os = arg; objset_impl_t *os = arg;
@ -856,7 +858,7 @@ ready(zio_t *zio, arc_buf_t *abuf, void *arg)
* Update rootbp fill count. * Update rootbp fill count.
*/ */
bp->blk_fill = 1; /* count the meta-dnode */ bp->blk_fill = 1; /* count the meta-dnode */
for (int i = 0; i < dnp->dn_nblkptr; i++) for (i = 0; i < dnp->dn_nblkptr; i++)
bp->blk_fill += dnp->dn_blkptr[i].blk_fill; bp->blk_fill += dnp->dn_blkptr[i].blk_fill;
if (zio->io_flags & ZIO_FLAG_IO_REWRITE) { if (zio->io_flags & ZIO_FLAG_IO_REWRITE) {