diff options
author | Ryan Moeller <[email protected]> | 2020-06-23 16:32:42 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-23 13:32:42 -0700 |
commit | 9192f27c1d7a8cb367d8691277573f2b756b47b6 (patch) | |
tree | 7a51da8b4877cbb24171b7a95bad5104d06dfcce /module/os/linux/zfs/mmp_os.c | |
parent | 2451a553681fac5e7e42bd794adbf5587bce6749 (diff) |
Add zfs_multihost_interval tunable handler for FreeBSD
This tunable required a handler to be implemented for
ZFS_MODULE_PARAM_CALL.
Add the handler so the tunable can be declared in common code.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10490
Diffstat (limited to 'module/os/linux/zfs/mmp_os.c')
-rw-r--r-- | module/os/linux/zfs/mmp_os.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/module/os/linux/zfs/mmp_os.c b/module/os/linux/zfs/mmp_os.c index 9c8545f3c..ff3ef1bf6 100644 --- a/module/os/linux/zfs/mmp_os.c +++ b/module/os/linux/zfs/mmp_os.c @@ -25,7 +25,7 @@ #include <sys/zfs_context.h> #include <sys/mmp.h> -static int +int param_set_multihost_interval(const char *val, zfs_kernel_param_t *kp) { int ret; @@ -39,8 +39,3 @@ param_set_multihost_interval(const char *val, zfs_kernel_param_t *kp) return (ret); } - -module_param_call(zfs_multihost_interval, param_set_multihost_interval, - param_get_ulong, &zfs_multihost_interval, 0644); -MODULE_PARM_DESC(zfs_multihost_interval, - "Milliseconds between mmp writes to each leaf"); |