]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Linux 2.6.39 compat, zlib_deflate_workspacesize()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Apr 2011 21:22:35 +0000 (14:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Apr 2011 21:39:15 +0000 (14:39 -0700)
commit3dfc591ac4003d1c92159b5dfe8970f24e008f81
tree0a3014aeffafed2ac02e307eaf5fdb2be649c420
parentb1cbc4610c8b5a9b5de80cb850a6eb58bb811a1d
Linux 2.6.39 compat, zlib_deflate_workspacesize()

The function zlib_deflate_workspacesize() now take 2 arguments.
This was done to avoid always having to allocate the maximum size
workspace (268K).  The caller can now specific the windowBits and
memLevel compression parameters to get a smaller workspace.

For our purposes we introduce a spl_zlib_deflate_workspacesize()
wrapper which accepts both arguments.  When the two argument
version of zlib_deflate_workspacesize() is available the arguments
are passed through.  When it's not we assume the worst case and
a maximally sized workspace is used.
config/spl-build.m4
configure
include/linux/zlib_compat.h [new file with mode: 0644]
include/sys/types.h
module/spl/spl-zlib.c
spl_config.h.in