openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.68k stars 1.76k forks source link

BRT: Clear bv_entcount_dirty on destroy #16791

Closed amotin closed 4 days ago

amotin commented 4 days ago

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.

Types of changes

Checklist: