summaryrefslogtreecommitdiff
path: root/fs/jffs2/compr.h
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@openedhand.com>2007-07-10 10:28:42 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2007-07-11 15:04:38 +0100
commit3b23c1f5fa7e4c99e9451958a1004ef7434a71f0 (patch)
tree2442c774918a422dee47b44d92515fcfb1897f35 /fs/jffs2/compr.h
parentc799aca31bfe61ba3a91133acf5a13a0773087d4 (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.h3
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;