mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Prefer VERIFY0P(n) over VERIFY(n == NULL)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #17591
This commit is contained in:
committed by
Brian Behlendorf
parent
611b95da18
commit
f7bdd84328
+1
-1
@@ -318,7 +318,7 @@ dnode_kstats_update(kstat_t *ksp, int rw)
|
||||
void
|
||||
dnode_init(void)
|
||||
{
|
||||
ASSERT(dnode_cache == NULL);
|
||||
ASSERT0P(dnode_cache);
|
||||
dnode_cache = kmem_cache_create("dnode_t", sizeof (dnode_t),
|
||||
0, dnode_cons, dnode_dest, NULL, NULL, NULL, KMC_RECLAIMABLE);
|
||||
kmem_cache_set_move(dnode_cache, dnode_move);
|
||||
|
||||
Reference in New Issue
Block a user