From 0ee89a1252f23fa2f1086670e47091400b1f857a Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Fri, 25 Oct 2019 13:46:07 -0700 Subject: [PATCH] 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 --- module/zfs/dnode.c | 1 - 1 file changed, 1 deletion(-) 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; /*