mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Prefer VERIFY0P(n) over VERIFY3P(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
f7bdd84328
commit
82d6f7b047
@@ -412,7 +412,7 @@ vdev_raidz_map_free(raidz_map_t *rm)
|
||||
rm->rm_nphys_cols);
|
||||
}
|
||||
|
||||
ASSERT3P(rm->rm_lr, ==, NULL);
|
||||
ASSERT0P(rm->rm_lr);
|
||||
kmem_free(rm, offsetof(raidz_map_t, rm_row[rm->rm_nrows]));
|
||||
}
|
||||
|
||||
@@ -2431,7 +2431,7 @@ raidz_start_skip_writes(zio_t *zio)
|
||||
vdev_t *cvd = vd->vdev_child[rc->rc_devidx];
|
||||
if (rc->rc_size != 0)
|
||||
continue;
|
||||
ASSERT3P(rc->rc_abd, ==, NULL);
|
||||
ASSERT0P(rc->rc_abd);
|
||||
|
||||
ASSERT3U(rc->rc_offset, <,
|
||||
cvd->vdev_psize - VDEV_LABEL_END_SIZE);
|
||||
@@ -4743,7 +4743,7 @@ spa_raidz_expand_thread(void *arg, zthr_t *zthr)
|
||||
void
|
||||
spa_start_raidz_expansion_thread(spa_t *spa)
|
||||
{
|
||||
ASSERT3P(spa->spa_raidz_expand_zthr, ==, NULL);
|
||||
ASSERT0P(spa->spa_raidz_expand_zthr);
|
||||
spa->spa_raidz_expand_zthr = zthr_create("raidz_expand",
|
||||
spa_raidz_expand_thread_check, spa_raidz_expand_thread,
|
||||
spa, defclsyspri);
|
||||
|
||||
Reference in New Issue
Block a user