HomeFreeBSD

ZIL: Tune some assertions.

Description

ZIL: Tune some assertions.

In zil_free_lwb() we should first assert lwb_state or the rest of
assertions can be misleading if it is false.

Add lwb_state assertions in zil_lwb_add_block() to make sure we are
not trying to add elements to lwb_vdev_tree after it was processed.

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

Details

Provenance
mavAuthored on Sep 2 2023, 12:13 AM
GitHub <noreply@github.com>Committed on Sep 2 2023, 12:13 AM
Parents
rG010c003e5f9e: dmu_buf_will_clone: change assertion to fix 32-bit compiler warning
Branches
Unknown
Tags
Unknown

Event Timeline