HomeFreeBSD

ZIL: pass commit errors back to ITX callbacks

Description

ZIL: pass commit errors back to ITX callbacks

ITX callbacks are used to signal that something can be cleaned up after
a itx is committed. Presently that's only used when syncing out mapped
pages (msync()) to mark dirty pages clean.

This extends the callback interface so it can be passed an error, and
take a different cleanup action if necessary.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17398

Details

Provenance
rob.norris_klarasystems.comAuthored on Feb 27 2025, 3:20 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 8 2025, 11:43 PM
Parents
rG967b15b88820: ZIL: allow zil_commit() to fail with error
Branches
Unknown
Tags
Unknown