mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
tunables: use Linux ullong param ops for u64
Since 3.17 Linux has provided param ops for 64-bit ints, so we don't need to use our own anymore. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Pavel Snajdr <snajpa@snajpa.net> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #17377
This commit is contained in:
committed by
Brian Behlendorf
parent
6e7e7ea7ef
commit
589d99171f
@@ -107,16 +107,16 @@ enum scope_prefix_types {
|
||||
#define spl_param_ops_ulong param_ops_ulong
|
||||
#define spl_param_ops_ULONG param_ops_ulong
|
||||
|
||||
#define spl_param_set_u64 param_set_ullong
|
||||
#define spl_param_get_u64 param_get_ullong
|
||||
#define spl_param_ops_u64 param_ops_ullong
|
||||
#define spl_param_ops_U64 param_ops_ullong
|
||||
|
||||
#define spl_param_set_charp param_set_charp
|
||||
#define spl_param_get_charp param_get_charp
|
||||
#define spl_param_ops_charp param_ops_charp
|
||||
#define spl_param_ops_STRING param_ops_charp
|
||||
|
||||
extern int spl_param_set_u64(const char *val, zfs_kernel_param_t *kp);
|
||||
extern int spl_param_get_u64(char *buffer, zfs_kernel_param_t *kp);
|
||||
extern const struct kernel_param_ops spl_param_ops_u64;
|
||||
#define spl_param_ops_U64 spl_param_ops_u64
|
||||
|
||||
/*
|
||||
* Declare a module parameter / sysctl node
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user