Skip to content

Commit

Permalink
revert removal of commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens committed Aug 4, 2020
1 parent 41d17f2 commit 6e6082f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions module/os/freebsd/spl/spl_zlib.c
Expand Up @@ -240,3 +240,30 @@ z_uncompress(void *dest, size_t *destLen, const void *source, size_t sourceLen)

return (err);
}

#if 0
int
spl_zlib_init(void)
{
int size;

size = MAX(spl_zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL),
zlib_inflate_workspacesize());

zlib_workspace_cache = kmem_cache_create(
"spl_zlib_workspace_cache",
size, 0, NULL, NULL, NULL, NULL, NULL,
KMC_VMEM | KMC_NOEMERGENCY);
if (!zlib_workspace_cache)
return (1);

return (0);
}

void
spl_zlib_fini(void)
{
kmem_cache_destroy(zlib_workspace_cache);
zlib_workspace_cache = NULL;
}
#endif

0 comments on commit 6e6082f

Please sign in to comment.