HomeFreeBSD

Improve block cloning transactions accounting

Description

Improve block cloning transactions accounting

Previous dmu_tx_count_clone() was broken, stating that cloning is
similar to free. While they might be from some points, cloning
is not net-free. It will likely consume space and memory, and
unlike free it will do it no matter whether the destination has
the blocks or not (usually not, so previous code did nothing).

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

Details

Provenance
mavAuthored on Jun 11 2025, 6:59 PM
GitHub <noreply@github.com>Committed on Jun 11 2025, 6:59 PM
Parents
rG66ec7fb26950: Reduce zfs_dmu_offset_next_sync penalty
Branches
Unknown
Tags
Unknown