From c799aca31bfe61ba3a91133acf5a13a0773087d4 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Jul 2007 10:28:36 +0100 Subject: [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 Signed-off-by: David Woodhouse --- fs/jffs2/compr.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fs/jffs2/compr.c') diff --git a/fs/jffs2/compr.c b/fs/jffs2/compr.c index d90ca05e499..bcc28d266a1 100644 --- a/fs/jffs2/compr.c +++ b/fs/jffs2/compr.c @@ -286,6 +286,9 @@ int __init jffs2_compressors_init(void) jffs2_rubinmips_init(); jffs2_dynrubin_init(); #endif +#ifdef CONFIG_JFFS2_LZO + jffs2_lzo_init(); +#endif /* Setting default compression mode */ #ifdef CONFIG_JFFS2_CMODE_NONE jffs2_compression_mode = JFFS2_COMPR_MODE_NONE; @@ -304,6 +307,9 @@ int __init jffs2_compressors_init(void) int jffs2_compressors_exit(void) { /* Unregistering compressors */ +#ifdef CONFIG_JFFS2_LZO + jffs2_lzo_exit(); +#endif #ifdef CONFIG_JFFS2_RUBIN jffs2_dynrubin_exit(); jffs2_rubinmips_exit(); -- cgit v1.2.3-18-g5258