mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	tunables: remove unused param get/set aliases
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:
		
							parent
							
								
									589d99171f
								
							
						
					
					
						commit
						dd4e2f99f0
					
				| @ -79,43 +79,23 @@ enum scope_prefix_types { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  * While we define our own u64 types, there is no reason to reimplement the |  * Our uint64 params are called U64 in part because we had them before Linux | ||||||
|  * existing Linux kernel types, so we use the preprocessor to remap our |  * provided ULLONG param ops. Now it does, and we use them, but we retain the | ||||||
|  * "custom" implementations to the kernel ones. This is done because the CPP |  * U64 name to keep many existing tunables working without issue. | ||||||
|  * does not allow us to write conditional definitions. The fourth definition |  | ||||||
|  * exists because the CPP will not allow us to replace things like INT with int |  | ||||||
|  * before string concatenation. |  | ||||||
|  */ |  */ | ||||||
|  | #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_set_int param_set_int | /*
 | ||||||
| #define	spl_param_get_int param_get_int |  * We keep our own names for param ops to make expanding them in | ||||||
| #define	spl_param_ops_int param_ops_int |  * ZFS_MODULE_PARAM easy. | ||||||
| #define	spl_param_ops_INT param_ops_int |  */ | ||||||
| 
 | #define	spl_param_ops_INT	param_ops_int | ||||||
| #define	spl_param_set_long param_set_long | #define	spl_param_ops_LONG	param_ops_long | ||||||
| #define	spl_param_get_long param_get_long | #define	spl_param_ops_UINT	param_ops_uint | ||||||
| #define	spl_param_ops_long param_ops_long | #define	spl_param_ops_ULONG	param_ops_ulong | ||||||
| #define	spl_param_ops_LONG param_ops_long | #define	spl_param_ops_STRING	param_ops_charp | ||||||
| 
 |  | ||||||
| #define	spl_param_set_uint param_set_uint |  | ||||||
| #define	spl_param_get_uint param_get_uint |  | ||||||
| #define	spl_param_ops_uint param_ops_uint |  | ||||||
| #define	spl_param_ops_UINT param_ops_uint |  | ||||||
| 
 |  | ||||||
| #define	spl_param_set_ulong param_set_ulong |  | ||||||
| #define	spl_param_get_ulong param_get_ulong |  | ||||||
| #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 |  | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  * Declare a module parameter / sysctl node |  * Declare a module parameter / sysctl node | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rob Norris
						Rob Norris