mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-10 09:21:09 +03:00
Remove commented-out code
Remove dead code to make the implementation easier to understand. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Ahrens <matt@delphix.com> Closes #10650
This commit is contained in:
parent
74e994ec63
commit
0cab7970f9
@ -240,30 +240,3 @@ z_uncompress(void *dest, size_t *destLen, const void *source, size_t sourceLen)
|
|||||||
|
|
||||||
return (err);
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user