mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +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
+2
-2
@@ -1011,7 +1011,7 @@ ddt_free(const ddt_t *ddt, ddt_entry_t *dde)
|
||||
{
|
||||
if (dde->dde_io != NULL) {
|
||||
for (int p = 0; p < DDT_NPHYS(ddt); p++)
|
||||
ASSERT3P(dde->dde_io->dde_lead_zio[p], ==, NULL);
|
||||
ASSERT0P(dde->dde_io->dde_lead_zio[p]);
|
||||
|
||||
if (dde->dde_io->dde_repair_abd != NULL)
|
||||
abd_free(dde->dde_io->dde_repair_abd);
|
||||
@@ -2395,7 +2395,7 @@ ddt_sync(spa_t *spa, uint64_t txg)
|
||||
* scan's root zio here so that we can wait for any scan IOs in
|
||||
* addition to the regular ddt IOs.
|
||||
*/
|
||||
ASSERT3P(scn->scn_zio_root, ==, NULL);
|
||||
ASSERT0P(scn->scn_zio_root);
|
||||
scn->scn_zio_root = rio;
|
||||
|
||||
for (enum zio_checksum c = 0; c < ZIO_CHECKSUM_FUNCTIONS; c++) {
|
||||
|
||||
Reference in New Issue
Block a user