diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2014-11-27 18:48:44 +0000 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2014-11-27 18:48:44 +0000 |
commit | 62421645bb702c077ee5a462815525106cb53bcf (patch) | |
tree | 83d98b98348bcaa8c7c0ddf2cc720104fdb6e52d /fs/squashfs/decompressor.c | |
parent | 9c06a46f1524a05b2dccf5c74d7555b2cfcbe5db (diff) | |
download | blackbird-op-linux-62421645bb702c077ee5a462815525106cb53bcf.tar.gz blackbird-op-linux-62421645bb702c077ee5a462815525106cb53bcf.zip |
Squashfs: Add LZ4 compression configuration option
Add the glue code, and also update the documentation.
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'fs/squashfs/decompressor.c')
-rw-r--r-- | fs/squashfs/decompressor.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/squashfs/decompressor.c b/fs/squashfs/decompressor.c index ac22fe73b0ad..e9034bf6e5ae 100644 --- a/fs/squashfs/decompressor.c +++ b/fs/squashfs/decompressor.c @@ -41,6 +41,12 @@ static const struct squashfs_decompressor squashfs_lzma_unsupported_comp_ops = { NULL, NULL, NULL, NULL, LZMA_COMPRESSION, "lzma", 0 }; +#ifndef CONFIG_SQUASHFS_LZ4 +static const struct squashfs_decompressor squashfs_lz4_comp_ops = { + NULL, NULL, NULL, NULL, LZ4_COMPRESSION, "lz4", 0 +}; +#endif + #ifndef CONFIG_SQUASHFS_LZO static const struct squashfs_decompressor squashfs_lzo_comp_ops = { NULL, NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0 @@ -65,6 +71,7 @@ static const struct squashfs_decompressor squashfs_unknown_comp_ops = { static const struct squashfs_decompressor *decompressor[] = { &squashfs_zlib_comp_ops, + &squashfs_lz4_comp_ops, &squashfs_lzo_comp_ops, &squashfs_xz_comp_ops, &squashfs_lzma_unsupported_comp_ops, |