]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: add support for ZSTD decompression
authorJoao Marcos Costa <joaomarcos.costa@bootlin.com>
Tue, 18 Aug 2020 15:17:23 +0000 (17:17 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 Aug 2020 18:11:31 +0000 (14:11 -0400)
commit9c948f536fec115b590760c2e9e333945dfde990
treeb5c8ee5d54a5ed05b3630216292018358e1eee95
parentcdc114415cb9b326545aaaf6226ed3622e057067
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>
fs/squashfs/sqfs_decompressor.c
fs/squashfs/sqfs_filesystem.h