Skip to content
Commit 10f7cf5f authored by Joao Marcos Costa's avatar Joao Marcos Costa Committed by Tom Rini
Browse files

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: default avatarJoao Marcos Costa <joaomarcos.costa@bootlin.com>
parent 4a1f0b80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment