Skip to content

Commit

Permalink
Handle large dnodes in dbuf_remap()
Browse files Browse the repository at this point in the history
Illumos does not currently have the org.zfsonlinux:large_dnode pool
feature.

Signed-off-by: Tim Chase <tim@chase2k.com>
  • Loading branch information
dweeezil committed Jan 14, 2018
1 parent c763677 commit de0eb14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/zfs/dbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3995,7 +3995,8 @@ dbuf_remap(dnode_t *dn, dmu_buf_impl_t *db, dmu_tx_t *tx)
dnode_phys_t *dnp = db->db.db_data;
ASSERT3U(db->db_dnode_handle->dnh_dnode->dn_type, ==,
DMU_OT_DNODE);
for (int i = 0; i < db->db.db_size >> DNODE_SHIFT; i++) {
for (int i = 0; i < db->db.db_size >> DNODE_SHIFT;
i += dnp[i].dn_extra_slots + 1) {
for (int j = 0; j < dnp[i].dn_nblkptr; j++) {
dbuf_remap_impl(dn, &dnp[i].dn_blkptr[j], tx);
}
Expand Down

0 comments on commit de0eb14

Please sign in to comment.