HomeFreeBSD

Optimize the is_l2cacheable functions

Description

Optimize the is_l2cacheable functions

by placing the most common use case (no special vdevs) first and avoid
allocating new variables.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14494
Closes #14563

Details

Provenance
g_amanakis_yahoo.comAuthored on Mar 7 2023, 12:13 AM
GitHub <noreply@github.com>Committed on Mar 7 2023, 12:13 AM
Parents
rGbc4d21078368: Fix memory leak in ztest
Branches
Unknown
Tags
Unknown