mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-21 18:26:47 +03:00
config: remove HAVE_KVMALLOC
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
committed by
Brian Behlendorf
parent
f95d76cc28
commit
6e625bd7bd
@@ -134,7 +134,6 @@ EXPORT_SYMBOL(kmem_strfree);
|
||||
void *
|
||||
spl_kvmalloc(size_t size, gfp_t lflags)
|
||||
{
|
||||
#ifdef HAVE_KVMALLOC
|
||||
/*
|
||||
* GFP_KERNEL allocations can safely use kvmalloc which may
|
||||
* improve performance by avoiding a) high latency caused by
|
||||
@@ -146,7 +145,6 @@ spl_kvmalloc(size_t size, gfp_t lflags)
|
||||
*/
|
||||
if ((lflags & GFP_KERNEL) == GFP_KERNEL)
|
||||
return (kvmalloc(size, lflags));
|
||||
#endif
|
||||
|
||||
gfp_t kmalloc_lflags = lflags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user