diff options
author | Ryan Moeller <[email protected]> | 2020-04-07 13:06:22 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-07 10:06:22 -0700 |
commit | 7e3df9db128722143734a9459771365ea19c1c40 (patch) | |
tree | 6010642540ab0b9d8eb6dd819a8b2ca7137b981c /module/zfs/spa_misc.c | |
parent | 2a15c6aab40e854808f2d910ee998cd405769dfa (diff) |
Finish refactoring for ZFS_MODULE_PARAM_CALL
Linux and FreeBSD have different parameters for tunable proc handler.
This has prevented FreeBSD from implementing the ZFS_MODULE_PARAM_CALL
macro.
To complete the sharing of ZFS_MODULE_PARAM_CALL declarations, create
per-platform definitions of the parameter list, ZFS_MODULE_PARAM_ARGS.
With the declarations wired up we discovered an incorrect scope prefix
for spa_slop_shift, so this is now fixed.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10179
Diffstat (limited to 'module/zfs/spa_misc.c')
-rw-r--r-- | module/zfs/spa_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/spa_misc.c b/module/zfs/spa_misc.c index 6f0783468..6a4307111 100644 --- a/module/zfs/spa_misc.c +++ b/module/zfs/spa_misc.c @@ -2891,5 +2891,5 @@ ZFS_MODULE_PARAM(zfs, zfs_, special_class_metadata_reserve_pct, INT, ZMOD_RW, "free space available"); /* END CSTYLED */ -ZFS_MODULE_PARAM_CALL(spa, spa_, slop_shift, param_set_slop_shift, +ZFS_MODULE_PARAM_CALL(zfs_spa, spa_, slop_shift, param_set_slop_shift, param_get_int, ZMOD_RW, "Reserved free space in pool"); |