HomeFreeBSD

Help compiller optimize out abd_verify()

Description

Help compiller optimize out abd_verify()

While abd_verify() does nothing when built without debug, compiler
can't optimize it out by itself due to calls to external list_*()
and abd_verify_scatter(). This commit makes it explicit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12280

Details

Provenance
mavAuthored on Jun 25 2021, 11:38 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 29 2021, 8:14 PM
Parents
rGaee26af277c9: Update cache file when setting compatibility property
Branches
Unknown
Tags
Unknown

Event Timeline