diff options
author | Richard Purdie <rpurdie@openedhand.com> | 2007-07-10 05:28:42 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-07-11 10:04:38 -0400 |
commit | 3b23c1f5fa7e4c99e9451958a1004ef7434a71f0 (patch) | |
tree | 2442c774918a422dee47b44d92515fcfb1897f35 /fs/jffs2/compr.h | |
parent | c799aca31bfe61ba3a91133acf5a13a0773087d4 (diff) |
[JFFS2] Add a "favourlzo" compression mode
Add a "favourlzo" compression mode to jffs2 which tries to
optimise by size but gives lzo an advantage when comparing sizes.
This means the faster lzo algorithm can be preferred when there
isn't much difference in compressed size (the exact threshold can
be changed).
Signed-off-by: Richard Purdie <rpurdie@openedhand.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/compr.h')
-rw-r--r-- | fs/jffs2/compr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jffs2/compr.h b/fs/jffs2/compr.h index a54828a4e9c6..e1b7efb70aa4 100644 --- a/fs/jffs2/compr.h +++ b/fs/jffs2/compr.h | |||
@@ -38,6 +38,9 @@ | |||
38 | #define JFFS2_COMPR_MODE_NONE 0 | 38 | #define JFFS2_COMPR_MODE_NONE 0 |
39 | #define JFFS2_COMPR_MODE_PRIORITY 1 | 39 | #define JFFS2_COMPR_MODE_PRIORITY 1 |
40 | #define JFFS2_COMPR_MODE_SIZE 2 | 40 | #define JFFS2_COMPR_MODE_SIZE 2 |
41 | #define JFFS2_COMPR_MODE_FAVOURLZO 3 | ||
42 | |||
43 | #define FAVOUR_LZO_PERCENT 80 | ||
41 | 44 | ||
42 | struct jffs2_compressor { | 45 | struct jffs2_compressor { |
43 | struct list_head list; | 46 | struct list_head list; |