From: Matthew Macy Date: Fri, 25 Oct 2019 20:46:07 +0000 (-0700) Subject: Remove non-portable pointer is valid assert X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ee89a1252f23fa2f1086670e47091400b1f857a;p=zfs Remove non-portable pointer is valid assert This assert makes non portable assumptions about the state of memory returned by the memory allocator. Reviewed-by: Igor Kozhukhov Reviewed-by: Jorgen Lundman Reviewed-by: Brian Behlendorf Signed-off-by: Matt Macy Closes #9506 --- diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index 9bca72d53..f03e88eb9 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -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; /*