]> git.proxmox.com Git - mirror_zfs.git/commit
Add tunable to allow changing micro ZAP's max size
authorMateusz Piotrowski <0mp@FreeBSD.org>
Tue, 10 Jan 2023 21:41:54 +0000 (22:41 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 21:41:54 +0000 (13:41 -0800)
commita4b21eadec9a185a222a5e8a12d19d31e0e32b07
treeb4b48ad82a18d9eb11b00139ed9305f7d64a5331
parent1f19826c9ac85835cbde61a7439d9d1fefe43a4a
Add tunable to allow changing micro ZAP's max size

This change turns `MZAP_MAX_BLKSZ` into a `ZFS_MODULE_PARAM()` called
`zap_micro_max_size`. As a result, we can experiment with different
micro ZAP sizes to improve directory size scaling.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Mateusz Piotrowski <mateuszpiotrowski@klarasystems.com>
Co-authored-by: Toomas Soome <toomas.soome@klarasystems.com>
Signed-off-by: Mateusz Piotrowski <mateuszpiotrowski@klarasystems.com>
Sponsored-by: Wasabi Technology, Inc.
Closes #14292
man/man4/zfs.4
module/zfs/dmu_tx.c
module/zfs/zap_micro.c