Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1413628

[PATCH v3 6/7] zram: add more compression algorithms

From Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v3 6/7] zram: add more compression algorithms
Date 2016-06-04 05:00 +0200
Message-ID <rG9YB-370-3@gated-at.bofh.it> (permalink)
References <rG9OV-33V-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
---
 drivers/block/zram/zcomp.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/block/zram/zcomp.c b/drivers/block/zram/zcomp.c
index 9ab45d4..32e521a 100644
--- a/drivers/block/zram/zcomp.c
+++ b/drivers/block/zram/zcomp.c
@@ -23,6 +23,15 @@ 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
+#if IS_ENABLED(CONFIG_CRYPTO_842)
+	"842",
+#endif
 	NULL
 };
 
-- 
2.8.3.394.g3916adf

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/7] zram: switch to crypto api Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 04:50 +0200
  [PATCH v3 1/7] zram: rename zstrm find-release functions Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 04:50 +0200
  [PATCH v3 4/7] zram: cosmetic: cleanup documentation Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
  [PATCH v3 6/7] zram: add more compression algorithms Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
    Re: [PATCH v3 6/7] zram: add more compression algorithms Minchan Kim <minchan@kernel.org> - 2016-06-07 08:30 +0200
  [PATCH v3 7/7] zram: drop gfp_t from zcomp_strm_alloc() Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
  [PATCH v3 3/7] zram: use crypto api to check alg availability Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200
    Re: [PATCH v3 3/7] zram: use crypto api to check alg availability Minchan Kim <minchan@kernel.org> - 2016-06-07 08:20 +0200
  [PATCH v3 5/7] zram: delete custom lzo/lz4 Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-06-04 05:00 +0200

csiph-web