staging: zcache: crypto API support
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 3 Jan 2012 22:31:34 +0000 (16:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 01:09:27 +0000 (17:09 -0800)
commit17dd9f831a3c70588d54cc3a24594f274f9ec3a1
treec804b66e3b41b47b237220f46a29b05f979ba996
parentaf9584b82df77751710db45043cf8d7d7740056d
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>
drivers/staging/zcache/Kconfig
drivers/staging/zcache/zcache-main.c