diff options
author | Matthew Ahrens <[email protected]> | 2017-06-29 10:18:03 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-06-29 10:18:03 -0700 |
commit | 817b1b6e7b6f9b8890a550c7c7efabdba41dd352 (patch) | |
tree | efb9aef59a253fc27ce89665ff573e62efbcfafd /module/zfs/dbuf.c | |
parent | b8a97fb101555797400c3a275e67820c5d689802 (diff) |
Clean up large dnode code
Resolves issues discovered when porting to OpenZFS.
* Lint warnings.
* Made dnode_move_impl() large dnode aware. This
functionality is currently unused on Linux.
Reviewed-by: Ned Bass <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes #6262
Diffstat (limited to 'module/zfs/dbuf.c')
-rw-r--r-- | module/zfs/dbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index 70cc3108d..f4e24e209 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -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) { |