summaryrefslogtreecommitdiffstats
path: root/fs/squashfs/decompressor.c
diff options
context:
space:
mode:
authorChan Jeong <chan.jeong@lge.com>2010-08-05 02:29:59 +0100
committerPhillip Lougher <phillip@lougher.demon.co.uk>2010-08-05 02:29:59 +0100
commit79cb8ced7eef53856b5a877db0544acf52e00c80 (patch)
treefd39e0c73f15fd5b86a816a4c6ebc10d12cb6622 /fs/squashfs/decompressor.c
parent4690148f77f90ec132b5eb780650ba8769b9ed39 (diff)
downloadlinux-79cb8ced7eef53856b5a877db0544acf52e00c80.tar.gz
linux-79cb8ced7eef53856b5a877db0544acf52e00c80.tar.bz2
linux-79cb8ced7eef53856b5a877db0544acf52e00c80.zip
Squashfs: Add LZO compression support
Signed-off-by: Chan Jeong <chan.jeong@lge.com> Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'fs/squashfs/decompressor.c')
-rw-r--r--fs/squashfs/decompressor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/squashfs/decompressor.c b/fs/squashfs/decompressor.c
index 157478da6ac9..24af9ce9722f 100644
--- a/fs/squashfs/decompressor.c
+++ b/fs/squashfs/decompressor.c
@@ -40,9 +40,11 @@ static const struct squashfs_decompressor squashfs_lzma_unsupported_comp_ops = {
NULL, NULL, NULL, LZMA_COMPRESSION, "lzma", 0
};
+#ifndef CONFIG_SQUASHFS_LZO
static const struct squashfs_decompressor squashfs_lzo_unsupported_comp_ops = {
NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0
};
+#endif
static const struct squashfs_decompressor squashfs_unknown_comp_ops = {
NULL, NULL, NULL, 0, "unknown", 0
@@ -51,7 +53,11 @@ static const struct squashfs_decompressor squashfs_unknown_comp_ops = {
static const struct squashfs_decompressor *decompressor[] = {
&squashfs_zlib_comp_ops,
&squashfs_lzma_unsupported_comp_ops,
+#ifdef CONFIG_SQUASHFS_LZO
+ &squashfs_lzo_comp_ops,
+#else
&squashfs_lzo_unsupported_comp_ops,
+#endif
&squashfs_unknown_comp_ops
};