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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 29 2024, 3:54 PM
Parents
rG41f2a9c81f61: Fix scn_queue races on very old pools
Branches
Unknown
Tags
Unknown