aboutsummaryrefslogtreecommitdiff
path: root/fs/squashfs/sqfs_filesystem.h
diff options
context:
space:
mode:
authorJoao Marcos Costa <joaomarcos.costa@bootlin.com>2020-08-18 17:17:23 +0200
committerTom Rini <trini@konsulko.com>2020-08-24 14:11:31 -0400
commit9c948f536fec115b590760c2e9e333945dfde990 (patch)
treeb5c8ee5d54a5ed05b3630216292018358e1eee95 /fs/squashfs/sqfs_filesystem.h
parentcdc114415cb9b326545aaaf6226ed3622e057067 (diff)
downloadu-boot-9c948f536fec115b590760c2e9e333945dfde990.zip
u-boot-9c948f536fec115b590760c2e9e333945dfde990.tar.gz
u-boot-9c948f536fec115b590760c2e9e333945dfde990.tar.bz2
fs/squashfs: add support for ZSTD decompression
Add call to ZSTD's ZSTD_decompressDCtx(). In this use case, the caller can upper bound the decompressed size, which will be the SquashFS data block (or metadata block) size, so there is no need to use streaming API. Add ZSTD's worskpace to squashfs_ctxt structure. Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Diffstat (limited to 'fs/squashfs/sqfs_filesystem.h')
-rw-r--r--fs/squashfs/sqfs_filesystem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/squashfs/sqfs_filesystem.h b/fs/squashfs/sqfs_filesystem.h
index ff2b0b1..856cd15 100644
--- a/fs/squashfs/sqfs_filesystem.h
+++ b/fs/squashfs/sqfs_filesystem.h
@@ -77,6 +77,9 @@ struct squashfs_ctxt {
struct disk_partition cur_part_info;
struct blk_desc *cur_dev;
struct squashfs_super_block *sblk;
+#if IS_ENABLED(CONFIG_ZSTD)
+ void *zstd_workspace;
+#endif
};
struct squashfs_directory_index {