X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fdmu.c;fp=module%2Fzfs%2Fdmu.c;h=f2b3f2ba7f27d6d03cdb29d89075959aeeff489c;hb=d6320ddb78fa89c4d0fc2af00ae53c7c70992f96;hp=39234eba53b2e4730d07d4259b680038dcd541cd;hpb=c5b3a7bbcc321846bb15ff73c6fd6f1c483b6aa6;p=zfs.git diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index 39234eb..f2b3f2b 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -1611,6 +1611,7 @@ void dmu_object_info_from_dnode(dnode_t *dn, dmu_object_info_t *doi) { dnode_phys_t *dnp; + int i; rw_enter(&dn->dn_struct_rwlock, RW_READER); mutex_enter(&dn->dn_mtx); @@ -1629,7 +1630,7 @@ dmu_object_info_from_dnode(dnode_t *dn, dmu_object_info_t *doi) doi->doi_physical_blocks_512 = (DN_USED_BYTES(dnp) + 256) >> 9; doi->doi_max_offset = (dnp->dn_maxblkid + 1) * dn->dn_datablksz; doi->doi_fill_count = 0; - for (int i = 0; i < dnp->dn_nblkptr; i++) + for (i = 0; i < dnp->dn_nblkptr; i++) doi->doi_fill_count += dnp->dn_blkptr[i].blk_fill; mutex_exit(&dn->dn_mtx);