mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 20:22:14 +03:00
Make module tunables cross platform
Adds ZFS_MODULE_PARAM to abstract module parameter setting to operating systems other than Linux. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #9230
This commit is contained in:
committed by
Brian Behlendorf
parent
65a91b166e
commit
03fdcb9adc
@@ -3201,10 +3201,10 @@ dmu_objset_is_receiving(objset_t *os)
|
||||
os->os_dsl_dataset->ds_owner == dmu_recv_tag);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL)
|
||||
module_param(zfs_recv_queue_length, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_recv_queue_length, "Maximum receive queue length");
|
||||
/* BEGIN CSTYLED */
|
||||
ZFS_MODULE_PARAM(zfs_recv, zfs_recv_, queue_length, INT, ZMOD_RW,
|
||||
"Maximum receive queue length");
|
||||
|
||||
module_param(zfs_recv_queue_ff, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_recv_queue_ff, "Receive queue fill fraction");
|
||||
#endif
|
||||
ZFS_MODULE_PARAM(zfs_recv, zfs_recv_, queue_ff, INT, ZMOD_RW,
|
||||
"Receive queue fill fraction");
|
||||
/* END CSTYLED */
|
||||
|
||||
Reference in New Issue
Block a user