diff options
author | Alexander Motin <[email protected]> | 2021-08-17 11:55:34 -0400 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2021-09-14 14:31:22 -0700 |
commit | 61773f41b898a53e8af0f4c242764d74fa2be55c (patch) | |
tree | e8cfc2158b55f3aca9c137ab5a7c12bcdcd5a4fc /scripts/cstyle.pl | |
parent | 40e02f49e9e6ea36836e39ef96e5353531715cdc (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Closes #12421
Diffstat (limited to 'scripts/cstyle.pl')
0 files changed, 0 insertions, 0 deletions