aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zfs_context.h
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-04-07 13:06:22 -0400
committerGitHub <[email protected]>2020-04-07 10:06:22 -0700
commit7e3df9db128722143734a9459771365ea19c1c40 (patch)
tree6010642540ab0b9d8eb6dd819a8b2ca7137b981c /include/sys/zfs_context.h
parent2a15c6aab40e854808f2d910ee998cd405769dfa (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 'include/sys/zfs_context.h')
-rw-r--r--include/sys/zfs_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h
index 39c778b1e..00642175d 100644
--- a/include/sys/zfs_context.h
+++ b/include/sys/zfs_context.h
@@ -198,6 +198,7 @@ typedef struct zfs_kernel_param {
} zfs_kernel_param_t;
#define ZFS_MODULE_PARAM(scope_prefix, name_prefix, name, type, perm, desc)
+#define ZFS_MODULE_PARAM_ARGS void
#define ZFS_MODULE_PARAM_CALL(scope_prefix, name_prefix, name, setfunc, \
getfunc, perm, desc)