HomeFreeBSD

Minor ARC optimizations

Description

Minor ARC optimizations

Remove unneeded global, practically constant, state pointer variables
(arc_anon, arc_mru, etc.), replacing them with macros of real state
variables addresses (&ARC_anon, &ARC_mru, etc.).

Change ARC_EVICT_ALL from -1ULL to UINT64_MAX, not requiring special
handling in inner loop of ARC reclamation. Respectively change bytes
argument of arc_evict_state() from int64_t to uint64_t.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Closes #12348

Details

Provenance
mavAuthored on Jul 20 2021, 2:13 PM
GitHub <noreply@github.com>Committed on Jul 20 2021, 2:13 PM
Parents
rGe04210035eba: dmu_redact.c does not call bqueue_destroy
Branches
Unknown
Tags
Unknown

Event Timeline