HomeFreeBSD

Unify arc_prune_async() code

Description

Unify arc_prune_async() code

There is no sense to have separate implementations for FreeBSD and
Linux. Make Linux code shared as more functional and just register
FreeBSD-specific prune callback with arc_add_prune_callback() API.

Aside of code cleanup this should fix excessive pruning on FreeBSD:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274698

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mark Johnston <markj@FreeBSD.org>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15456

Details

Provenance
mavAuthored on Oct 30 2023, 11:56 PM
Tony Hutter <hutter2@llnl.gov>Committed on Nov 8 2023, 8:15 PM
Parents
rGbd7a02c251d8: Tune zio buffer caches and their alignments
Branches
Unknown
Tags
Unknown