mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
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 <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #16791
This commit is contained in:
parent
225e76cd7d
commit
ae1d11882d
@ -642,6 +642,7 @@ brt_vdev_destroy(spa_t *spa, brt_vdev_t *brtvd, dmu_tx_t *tx)
|
||||
BRT_DEBUG("MOS BRT VDEV destroyed, object=%llu",
|
||||
(u_longlong_t)brtvd->bv_mos_brtvdev);
|
||||
brtvd->bv_mos_brtvdev = 0;
|
||||
brtvd->bv_entcount_dirty = FALSE;
|
||||
|
||||
snprintf(name, sizeof (name), "%s%llu", BRT_OBJECT_VDEV_PREFIX,
|
||||
(u_longlong_t)brtvd->bv_vdevid);
|
||||
|
Loading…
Reference in New Issue
Block a user