aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/compr.c
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@openedhand.com>2007-07-10 05:28:36 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-07-11 10:03:53 -0400
commitc799aca31bfe61ba3a91133acf5a13a0773087d4 (patch)
treed05f44fbec08e26fd52b8b1f4c7b5d162cfe3c31 /fs/jffs2/compr.c
parent8691a729a2a3d739ee40a577053157393450aabd (diff)
[JFFS2] Add LZO compression support.
Add LZO1X compression/decompression support to jffs2. LZO's interface doesn't entirely match that required by jffs2 so a buffer and memcpy is unavoidable. Signed-off-by: Richard Purdie <rpurdie@openedhand.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/compr.c')
-rw-r--r--fs/jffs2/compr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/jffs2/compr.c b/fs/jffs2/compr.c
index d90ca05e4992..bcc28d266a12 100644
--- a/fs/jffs2/compr.c
+++ b/fs/jffs2/compr.c
@@ -286,6 +286,9 @@ int __init jffs2_compressors_init(void)
286 jffs2_rubinmips_init(); 286 jffs2_rubinmips_init();
287 jffs2_dynrubin_init(); 287 jffs2_dynrubin_init();
288#endif 288#endif
289#ifdef CONFIG_JFFS2_LZO
290 jffs2_lzo_init();
291#endif
289/* Setting default compression mode */ 292/* Setting default compression mode */
290#ifdef CONFIG_JFFS2_CMODE_NONE 293#ifdef CONFIG_JFFS2_CMODE_NONE
291 jffs2_compression_mode = JFFS2_COMPR_MODE_NONE; 294 jffs2_compression_mode = JFFS2_COMPR_MODE_NONE;
@@ -304,6 +307,9 @@ int __init jffs2_compressors_init(void)
304int jffs2_compressors_exit(void) 307int jffs2_compressors_exit(void)
305{ 308{
306/* Unregistering compressors */ 309/* Unregistering compressors */
310#ifdef CONFIG_JFFS2_LZO
311 jffs2_lzo_exit();
312#endif
307#ifdef CONFIG_JFFS2_RUBIN 313#ifdef CONFIG_JFFS2_RUBIN
308 jffs2_dynrubin_exit(); 314 jffs2_dynrubin_exit();
309 jffs2_rubinmips_exit(); 315 jffs2_rubinmips_exit();