projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1ed9f
)
zram: add more compression algorithms
author
Sergey Senozhatsky
<
[email protected]
>
Tue, 26 Jul 2016 22:22:56 +0000
(15:22 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Jul 2016 23:19:19 +0000
(16:19 -0700)
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]
>
drivers/block/zram/zcomp.c
patch
|
blob
|
history
diff --git
a/drivers/block/zram/zcomp.c
b/drivers/block/zram/zcomp.c
index 9ab45d41624b0a9b4556dc457202e33fa17745f5..32e521a2b8c8e02f6869172b8d9e4ad1ebb08618 100644
(file)
--- a/
drivers/block/zram/zcomp.c
+++ b/
drivers/block/zram/zcomp.c
@@
-22,6
+22,15
@@
static const char * const backends[] = {
"lzo",
#if IS_ENABLED(CONFIG_CRYPTO_LZ4)
"lz4",
+#endif
+#if IS_ENABLED(CONFIG_CRYPTO_DEFLATE)
+ "deflate",
+#endif
+#if IS_ENABLED(CONFIG_CRYPTO_LZ4HC)
+ "lz4hc",
+#endif
+#if IS_ENABLED(CONFIG_CRYPTO_842)
+ "842",
#endif
NULL
};