summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/compr.h
diff options
context:
space:
mode:
authorAndres Salomon2011-10-17 03:15:23 +0200
committerArtem Bityutskiy2011-10-19 16:22:21 +0200
commit123005f3ccfa58637ad6e1a8b9f7f3f861ca65f4 (patch)
treea9bd8a539d9c950f47514a5f94f65c25c09e3b6c /fs/jffs2/compr.h
parentjffs2: implement mount option parsing and compression overriding (diff)
downloadkernel-qcow2-linux-123005f3ccfa58637ad6e1a8b9f7f3f861ca65f4.tar.gz
kernel-qcow2-linux-123005f3ccfa58637ad6e1a8b9f7f3f861ca65f4.tar.xz
kernel-qcow2-linux-123005f3ccfa58637ad6e1a8b9f7f3f861ca65f4.zip
jffs2: add compr=lzo and compr=zlib options
..to allow forcing of either compression scheme. This will override compiled-in defaults. jffs2_compress is reworked a bit, as the lzo/zlib override shares lots of code w/ the PRIORITY mode. v2: update show_options accordingly. Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'fs/jffs2/compr.h')
-rw-r--r--fs/jffs2/compr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jffs2/compr.h b/fs/jffs2/compr.h
index 13bb7597ab39..5e91d578f4ed 100644
--- a/fs/jffs2/compr.h
+++ b/fs/jffs2/compr.h
@@ -40,6 +40,8 @@
#define JFFS2_COMPR_MODE_PRIORITY 1
#define JFFS2_COMPR_MODE_SIZE 2
#define JFFS2_COMPR_MODE_FAVOURLZO 3
+#define JFFS2_COMPR_MODE_FORCELZO 4
+#define JFFS2_COMPR_MODE_FORCEZLIB 5
#define FAVOUR_LZO_PERCENT 80