HomeFreeBSD

Move libspl_assertf into .c file

Description

Move libspl_assertf into .c file

Variadic functions cannot be inlined. libspl_assertf ends up being
duplicated in every file that uses it.

Fix this by moving the function into a new assert.c. Also move the
definition of aok into the new file instead of zone.c.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538

Details

Provenance
Arvind Sankar <nivedita@alum.mit.edu>Authored on Jul 4 2020, 10:24 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 10 2020, 9:25 PM
Parents
rG2054f35e564b: Fix a persistent L2ARC bug in l2arc_write_done()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb6437ea41c76: Move libspl_assertf into .c file (authored by Arvind Sankar <nivedita@alum.mit.edu>).Jul 10 2020, 9:25 PM