HomeFreeBSD

dbuf: Handle arcbuf assignment after block cloning

Description

dbuf: Handle arcbuf assignment after block cloning

In some cases dbuf_assign_arcbuf() may be called on a block that
was recently cloned. If it happened in current TXG we must undo
the block cloning first, since the only one dirty record per TXG
can't and shouldn't mean both cloning and overwrite same time.

Reviewed-by: Kay Pedersen <mail@mkwg.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15653

Details

Provenance
mavAuthored on Dec 12 2023, 8:53 PM
GitHub <noreply@github.com>Committed on Dec 12 2023, 8:53 PM
Parents
rGf4b97c1e0090: ZTS: Update raidz_expand_005_pos.ksh
Branches
Unknown
Tags
Unknown