zram: remove zlib from the list of recommended algorithms
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Thu, 16 Nov 2017 01:33:53 +0000 (17:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Nov 2017 02:21:03 +0000 (18:21 -0800)
ZSTD tends to outperform deflate/inflate, thus we remove zlib from the
list of recommended algorithms and recommend zstd instead.

Link: http://lkml.kernel.org/r/20170912050005.3247-2-sergey.senozhatsky@gmail.com
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Suggested-by: Minchan Kim <minchan@kernel.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/zram/zcomp.c

index cc66daec7bbc38c445a040a8b9685d7f2c967417..4ed0a78fdc09633d20add1d018bc2caf639926e3 100644 (file)
@@ -23,9 +23,6 @@ static const char * const backends[] = {
 #if IS_ENABLED(CONFIG_CRYPTO_LZ4)
        "lz4",
 #endif
-#if IS_ENABLED(CONFIG_CRYPTO_DEFLATE)
-       "deflate",
-#endif
 #if IS_ENABLED(CONFIG_CRYPTO_LZ4HC)
        "lz4hc",
 #endif