HomeFreeBSD

zdb: Fix big parameter passed by value

Description

zdb: Fix big parameter passed by value

This is not in performance critical code, but static analyzers will
complain about it, so lets switch to pass by pointer here.

Reported-by: Coverity (CID-1524384)
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14263

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Dec 4 2022, 10:58 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 8 2022, 9:52 PM
Parents
rGf1100863f74f: Linux: Cleanup unnecessary NULL check in __vdev_disk_physio()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGecccaede680c: zdb: Fix big parameter passed by value (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 8 2022, 9:52 PM