diff options
author | Brian Behlendorf <[email protected]> | 2011-04-20 14:22:35 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-04-20 14:39:15 -0700 |
commit | 3dfc591ac4003d1c92159b5dfe8970f24e008f81 (patch) | |
tree | 0a3014aeffafed2ac02e307eaf5fdb2be649c420 /spl_config.h.in | |
parent | b1cbc4610c8b5a9b5de80cb850a6eb58bb811a1d (diff) |
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.
Diffstat (limited to 'spl_config.h.in')
-rw-r--r-- | spl_config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in index 7f084f544..b2ba74b8c 100644 --- a/spl_config.h.in +++ b/spl_config.h.in @@ -21,6 +21,9 @@ /* vfs_unlink() wants 2 args */ #undef HAVE_2ARGS_VFS_UNLINK +/* zlib_deflate_workspacesize() wants 2 args */ +#undef HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE + /* file_fsync() wants 3 args */ #undef HAVE_3ARGS_FILE_FSYNC |