summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/compr.h
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2011-10-16 18:15:23 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-10-19 17:22:21 +0300
commit123005f3ccfa58637ad6e1a8b9f7f3f861ca65f4 (patch)
treea9bd8a539d9c950f47514a5f94f65c25c09e3b6c /fs/jffs2/compr.h
parent92abc475d8de1c29373f6d96ed63d8ecaa199d25 (diff)
downloadlinux-123005f3ccfa58637ad6e1a8b9f7f3f861ca65f4.tar.bz2
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