]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/dbuf.c
Clean up large dnode code
[mirror_zfs.git] / module / zfs / dbuf.c
index 70cc3108d0ace6fae72248b5cd75dda8cd15dbae..f4e24e2099a239ef3ca3446c1d392e4d342a81d7 100644 (file)
@@ -3419,7 +3419,8 @@ dbuf_write_ready(zio_t *zio, arc_buf_t *buf, void *vdb)
                if (dn->dn_type == DMU_OT_DNODE) {
                        i = 0;
                        while (i < db->db.db_size) {
-                               dnode_phys_t *dnp = db->db.db_data + i;
+                               dnode_phys_t *dnp =
+                                   (void *)(((char *)db->db.db_data) + i);
 
                                i += DNODE_MIN_SIZE;
                                if (dnp->dn_type != DMU_OT_NONE) {