diff options
author | 2012-01-03 16:31:34 -0600 | |
---|---|---|
committer | 2012-02-08 17:09:27 -0800 | |
commit | 17dd9f831a3c70588d54cc3a24594f274f9ec3a1 (patch) | |
tree | c804b66e3b41b47b237220f46a29b05f979ba996 /drivers/staging/zcache/Kconfig | |
parent | Staging: hv: storvsc: Consolidate all the wire protocol definitions (diff) | |
download | linux-dev-17dd9f831a3c70588d54cc3a24594f274f9ec3a1.tar.xz linux-dev-17dd9f831a3c70588d54cc3a24594f274f9ec3a1.zip |
staging: zcache: crypto API support
This patch allow zcache to use the crypto API for page compression.
It replaces the direct LZO compress/decompress calls with calls
into the crypto compression API. The compressor to be used is
specified in the kernel boot line with the zcache parameter like:
zcache=lzo or zcache=deflate. If the specified compressor can't
be loaded, zcache uses lzo as the default compressor.
Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/zcache/Kconfig')
-rw-r--r-- | drivers/staging/zcache/Kconfig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/zcache/Kconfig b/drivers/staging/zcache/Kconfig index 7fabcb2bc80d..1b7bba7b1a3f 100644 --- a/drivers/staging/zcache/Kconfig +++ b/drivers/staging/zcache/Kconfig @@ -1,13 +1,12 @@ config ZCACHE tristate "Dynamic compression of swap pages and clean pagecache pages" - depends on CLEANCACHE || FRONTSWAP + depends on (CLEANCACHE || FRONTSWAP) && CRYPTO select XVMALLOC - select LZO_COMPRESS - select LZO_DECOMPRESS + select CRYPTO_LZO default n help Zcache doubles RAM efficiency while providing a significant - performance boosts on many workloads. Zcache uses lzo1x + performance boosts on many workloads. Zcache uses compression and an in-kernel implementation of transcendent memory to store clean page cache pages and swap in RAM, providing a noticeable reduction in disk I/O. |