]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
Selectable block allocators
authorednadolski-ix <137826107+ednadolski-ix@users.noreply.github.com>
Sat, 2 Sep 2023 01:00:30 +0000 (19:00 -0600)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 01:00:30 +0000 (18:00 -0700)
commit95f71c019d7c3e3b728a9b05e2117ce6b09f1b87
tree15501372d7a5b87ca33b1532099350daf2f30459
parent71472bf375deb4fbd42fd66181aa35864b603b3a
Selectable block allocators

ZFS historically has had several space allocators that were
dynamically selectable.  While these have been retained in
OpenZFS, only a single allocator has been statically compiled
in. This patch compiles all allocators for OpenZFS and provides
a module parameter to allow for manual selection between them.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Edmund Nadolski <edmund.nadolski@ixsystems.com>
Closes #15218
include/os/freebsd/spl/sys/mod_os.h
include/sys/metaslab.h
include/sys/spa.h
include/sys/spa_impl.h
module/os/freebsd/zfs/sysctl_os.c
module/os/linux/zfs/spa_misc_os.c
module/zfs/metaslab.c
module/zfs/spa.c
module/zfs/spa_misc.c