mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +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
+6
-13
@@ -2474,7 +2474,6 @@ dmu_fini(void)
|
||||
abd_fini();
|
||||
}
|
||||
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(dmu_bonus_hold);
|
||||
EXPORT_SYMBOL(dmu_bonus_hold_by_dnode);
|
||||
EXPORT_SYMBOL(dmu_buf_hold_array_by_bonus);
|
||||
@@ -2508,21 +2507,15 @@ EXPORT_SYMBOL(dmu_buf_hold);
|
||||
EXPORT_SYMBOL(dmu_ot);
|
||||
|
||||
/* BEGIN CSTYLED */
|
||||
module_param(zfs_nopwrite_enabled, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_nopwrite_enabled, "Enable NOP writes");
|
||||
ZFS_MODULE_PARAM(zfs, zfs_, nopwrite_enabled, INT, ZMOD_RW,
|
||||
"Enable NOP writes");
|
||||
|
||||
module_param(zfs_per_txg_dirty_frees_percent, ulong, 0644);
|
||||
MODULE_PARM_DESC(zfs_per_txg_dirty_frees_percent,
|
||||
"percentage of dirtied blocks from frees in one TXG");
|
||||
ZFS_MODULE_PARAM(zfs, zfs_, per_txg_dirty_frees_percent, ULONG, ZMOD_RW,
|
||||
"Percentage of dirtied blocks from frees in one TXG");
|
||||
|
||||
module_param(zfs_dmu_offset_next_sync, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_dmu_offset_next_sync,
|
||||
ZFS_MODULE_PARAM(zfs, zfs_, dmu_offset_next_sync, INT, ZMOD_RW,
|
||||
"Enable forcing txg sync to find holes");
|
||||
|
||||
module_param(dmu_prefetch_max, int, 0644);
|
||||
MODULE_PARM_DESC(dmu_prefetch_max,
|
||||
ZFS_MODULE_PARAM(zfs, , dmu_prefetch_max, INT, ZMOD_RW,
|
||||
"Limit one prefetch call to this size");
|
||||
|
||||
/* END CSTYLED */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user