Optimize the is_l2cacheable functions
commitca9e32d3a7f47cf9b4c564f5b16beadc29647804
authorGeorge Amanakis <gamanakis@gmail.com>
Tue, 7 Mar 2023 00:13:05 +0000 (7 01:13 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Mar 2023 00:13:05 +0000 (6 16:13 -0800)
tree64c47566823dc6995659ae38a56aa884db811fbe
parentbc4d210783686a0b6728546576e4465912f99afc
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
module/zfs/dbuf.c
module/zfs/dmu_objset.c