Skip to content

Commit eb9f56d

Browse files
sergey-senozhatskytorvalds
authored andcommitted
zram: add more compression algorithms
Add "deflate", "lz4hc", "842" algorithms to the list of known compression backends. The real availability of those algorithms, however, depends on the corresponding CONFIG_CRYPTO_FOO config options. [[email protected]: zram-add-more-compression-algorithms-v3] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Sergey Senozhatsky <[email protected]> Acked-by: Minchan Kim <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ce1ed9f commit eb9f56d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/block/zram/zcomp.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ static const char * const backends[] = {
2222
"lzo",
2323
#if IS_ENABLED(CONFIG_CRYPTO_LZ4)
2424
"lz4",
25+
#endif
26+
#if IS_ENABLED(CONFIG_CRYPTO_DEFLATE)
27+
"deflate",
28+
#endif
29+
#if IS_ENABLED(CONFIG_CRYPTO_LZ4HC)
30+
"lz4hc",
31+
#endif
32+
#if IS_ENABLED(CONFIG_CRYPTO_842)
33+
"842",
2534
#endif
2635
NULL
2736
};

0 commit comments

Comments
 (0)