diff options
author | Richard Purdie | 2007-07-10 11:28:42 +0200 |
---|---|---|
committer | David Woodhouse | 2007-07-11 16:04:38 +0200 |
commit | 3b23c1f5fa7e4c99e9451958a1004ef7434a71f0 (patch) | |
tree | 2442c774918a422dee47b44d92515fcfb1897f35 /fs/jffs2/compr.h | |
parent | [JFFS2] Add LZO compression support. (diff) | |
download | kernel-qcow2-linux-3b23c1f5fa7e4c99e9451958a1004ef7434a71f0.tar.gz kernel-qcow2-linux-3b23c1f5fa7e4c99e9451958a1004ef7434a71f0.tar.xz kernel-qcow2-linux-3b23c1f5fa7e4c99e9451958a1004ef7434a71f0.zip |
[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 @@ #define JFFS2_COMPR_MODE_NONE 0 #define JFFS2_COMPR_MODE_PRIORITY 1 #define JFFS2_COMPR_MODE_SIZE 2 +#define JFFS2_COMPR_MODE_FAVOURLZO 3 + +#define FAVOUR_LZO_PERCENT 80 struct jffs2_compressor { struct list_head list; |