BRT: Clear bv_entcount_dirty on destroy
commitae1d11882d10afb388e749684f8020b38de8504a
authorAlexander Motin <mav@FreeBSD.org>
Thu, 21 Nov 2024 16:20:22 +0000 (21 11:20 -0500)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 16:20:22 +0000 (21 08:20 -0800)
treef6746cfc729803411d2cca70e8d0aa4aeed42be5
parent225e76cd7d43939751bfbcdefaea28b58699cbf1
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
module/zfs/brt.c