]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/arc.c
Unify arc_prune_async() code
authorAlexander Motin <mav@FreeBSD.org>
Mon, 30 Oct 2023 23:56:04 +0000 (19:56 -0400)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 23:56:04 +0000 (16:56 -0700)
commit799e09f75a31e80a1702a850838c79879af8b917
tree7a25ed1e741a354170f461145042be31865ef5cd
parent514d661ca1d5df1f5e4f852d169f6969fcff2994
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
include/os/linux/zfs/sys/zpl.h
include/sys/arc.h
include/sys/arc_impl.h
module/os/freebsd/zfs/arc_os.c
module/os/freebsd/zfs/zfs_vfsops.c
module/os/linux/zfs/arc_os.c
module/os/linux/zfs/zpl_super.c
module/zfs/arc.c