HomeFreeBSD

Suppress Clang Static Analyzer warning in bpobj_enqueue()

Description

Suppress Clang Static Analyzer warning in bpobj_enqueue()

scan-build does not do cross translation unit analysis to realize that
dmu_buf_hold() will always set bpo->bpo_cached_dbuf to a non-NULL
pointer, so we add an assertion to make it realize this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14575

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Mar 5 2023, 3:31 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 8 2023, 9:51 PM
Parents
rG45c446308a57: Suppress Clang Static Analyzer warning in dsl_dir_rename_sync()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG51f55742f6b8: Suppress Clang Static Analyzer warning in bpobj_enqueue() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Mar 8 2023, 9:51 PM