]> granicus.if.org Git - zfs/commitdiff
Remove non-portable pointer is valid assert
authorMatthew Macy <mmacy@freebsd.org>
Fri, 25 Oct 2019 20:46:07 +0000 (13:46 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Oct 2019 20:46:07 +0000 (13:46 -0700)
This assert makes non portable assumptions about the state of memory
returned by the memory allocator.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9506

module/zfs/dnode.c

index 9bca72d53cb75c5e1859291b0d96d352f5e67c84..f03e88eb9e8b4b8da690ec9cffacb333acf493e8 100644 (file)
@@ -446,7 +446,6 @@ dnode_create(objset_t *os, dnode_phys_t *dnp, dmu_buf_impl_t *db,
        dnode_t *dn;
 
        dn = kmem_cache_alloc(dnode_cache, KM_SLEEP);
-       ASSERT(!POINTER_IS_VALID(dn->dn_objset));
        dn->dn_moved = 0;
 
        /*