mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Prefer VERIFY0(n) over VERIFY3U(n, ==, 0)
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
c39e076f23
commit
5c7df3bcac
+2
-2
@@ -1295,7 +1295,7 @@ spa_taskqs_fini(spa_t *spa, zio_type_t t, zio_taskq_type_t q)
|
||||
spa_taskqs_t *tqs = &spa->spa_zio_taskq[t][q];
|
||||
|
||||
if (tqs->stqs_taskq == NULL) {
|
||||
ASSERT3U(tqs->stqs_count, ==, 0);
|
||||
ASSERT0(tqs->stqs_count);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2021,7 +2021,7 @@ spa_unload_log_sm_flush_all(spa_t *spa)
|
||||
dmu_tx_t *tx = dmu_tx_create_dd(spa_get_dsl(spa)->dp_mos_dir);
|
||||
VERIFY0(dmu_tx_assign(tx, DMU_TX_WAIT | DMU_TX_SUSPEND));
|
||||
|
||||
ASSERT3U(spa->spa_log_flushall_txg, ==, 0);
|
||||
ASSERT0(spa->spa_log_flushall_txg);
|
||||
spa->spa_log_flushall_txg = dmu_tx_get_txg(tx);
|
||||
|
||||
dmu_tx_commit(tx);
|
||||
|
||||
Reference in New Issue
Block a user