HomeFreeBSD

Fix ZIL clone records for legacy holes

Description

Fix ZIL clone records for legacy holes

Previous code overengineered cloned range calculation by using
BP_GET_LSIZE(). The problem is that legacy holes don't have the
logical size, so result will be wrong. But we also don't need
to look on every block size, since they all must be identical.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16165

Details

Provenance
mavAuthored on May 9 2024, 2:39 PM
GitHub <noreply@github.com>Committed on May 9 2024, 2:39 PM
Parents
rGaf5dbed3193e: Fix scn_queue races on very old pools
Branches
Unknown
Tags
Unknown