diff --git a/module/zstd/zstd.c b/module/zstd/zstd.c index 22992f7a74c5..55c2ed727bbc 100644 --- a/module/zstd/zstd.c +++ b/module/zstd/zstd.c @@ -420,7 +420,7 @@ zstd_alloc(void *opaque __unused, size_t size) */ #ifdef _KERNEL if (nbytes > spl_kmem_alloc_max || nbytes > spl_kmem_alloc_warn) - z = kmem_zalloc(nbytes, KM_NOSLEEP | KM_VMEM); + z = vmem_zalloc(nbytes, KM_NOSLEEP); else #endif z = kmem_zalloc(nbytes, KM_NOSLEEP);