mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +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
@@ -256,7 +256,7 @@ vdev_rebuild_initiate_sync(void *arg, dmu_tx_t *tx)
|
||||
"vdev_id=%llu vdev_guid=%llu started",
|
||||
(u_longlong_t)vd->vdev_id, (u_longlong_t)vd->vdev_guid);
|
||||
|
||||
ASSERT3P(vd->vdev_rebuild_thread, ==, NULL);
|
||||
ASSERT0P(vd->vdev_rebuild_thread);
|
||||
vd->vdev_rebuild_thread = thread_create(NULL, 0,
|
||||
vdev_rebuild_thread, vd, 0, &p0, TS_RUN, maxclsyspri);
|
||||
|
||||
@@ -413,7 +413,7 @@ vdev_rebuild_reset_sync(void *arg, dmu_tx_t *tx)
|
||||
mutex_enter(&vd->vdev_rebuild_lock);
|
||||
|
||||
ASSERT(vrp->vrp_rebuild_state == VDEV_REBUILD_ACTIVE);
|
||||
ASSERT3P(vd->vdev_rebuild_thread, ==, NULL);
|
||||
ASSERT0P(vd->vdev_rebuild_thread);
|
||||
|
||||
vrp->vrp_last_offset = 0;
|
||||
vrp->vrp_min_txg = 0;
|
||||
|
||||
Reference in New Issue
Block a user