HomeFreeBSD

Optimize arc_l2c_only lists assertions

Description

Optimize arc_l2c_only lists assertions

It is very expensive and not informative to call multilist_is_empty()
for each arc_change_state() on debug builds to check for impossible.
Instead implement special index function for arc_l2c_only->arcs_list,
multilists, panicking on any attempt to use it.

Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12421

Details

Provenance
mavAuthored on Aug 17 2021, 3:55 PM
GitHub <noreply@github.com>Committed on Aug 17 2021, 3:55 PM
Parents
rGcfe8e960f193: Fix/improve dbuf hits accounting
Branches
Unknown
Tags
Unknown