Skip to content

Commit ae1d118

Browse files
authored
BRT: Clear bv_entcount_dirty on destroy
This fixes assertion in brt_sync_table() on debug builds when last cloned block on the vdev is freed and bv_meta_dirty is cleared, while bv_entcount_dirty is not. Should not matter in production. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #16791
1 parent 225e76c commit ae1d118

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/zfs/brt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ brt_vdev_destroy(spa_t *spa, brt_vdev_t *brtvd, dmu_tx_t *tx)
642642
BRT_DEBUG("MOS BRT VDEV destroyed, object=%llu",
643643
(u_longlong_t)brtvd->bv_mos_brtvdev);
644644
brtvd->bv_mos_brtvdev = 0;
645+
brtvd->bv_entcount_dirty = FALSE;
645646

646647
snprintf(name, sizeof (name), "%s%llu", BRT_OBJECT_VDEV_PREFIX,
647648
(u_longlong_t)brtvd->bv_vdevid);

0 commit comments

Comments
 (0)