]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: Add init and clean-up functions to decompression
authorJoao Marcos Costa <joaomarcos.costa@bootlin.com>
Tue, 18 Aug 2020 15:17:21 +0000 (17:17 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 Aug 2020 18:11:31 +0000 (14:11 -0400)
commit10f7cf5f12a8721d6c985d4de11dac4d19e0e47e
tree970ab35116ee4f6882c4b1cc499b71175ee4ea24
parent4a1f0b80adfc9465e8a3efcb884d397e5ab7f07f
fs/squashfs: Add init and clean-up functions to decompression

Add sqfs_decompressor_init() and sqfs_decompressor_cleanup(). These
functions are called respectively in sqfs_probe() and sqfs_close(). For
now, only ZSTD requires an initialization logic. ZSTD support will be
added in a follow-up commit.

Move squashfs_ctxt definition to sqfs_filesystem.h. This structure is
passed to sqfs_decompressor_init() and sqfs_decompressor_cleanup(), so
it can no longer be local to sqfs.c.

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
fs/squashfs/sqfs.c
fs/squashfs/sqfs_decompressor.c
fs/squashfs/sqfs_decompressor.h
fs/squashfs/sqfs_filesystem.h