--- sys/contrib/opensolaris/uts/common/fs/zfs/dnode.c.orig2 Sun Mar 4 23:09:11 2007 +++ sys/contrib/opensolaris/uts/common/fs/zfs/dnode.c Sun Mar 4 23:09:32 2007 @@ -605,7 +605,7 @@ dnode_t *winner; dn = dnode_create(os, (dnode_phys_t *)db->db.db_data+idx, db, object); - winner = atomic_cas_ptr(&children_dnodes[idx], NULL, dn); + winner = (dnode_t*)atomic_cas_ptr(&children_dnodes[idx], NULL, dn); if (winner != NULL) { dnode_destroy(dn); dn = winner;