]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
f2fs: compress: add .{init,destroy}_decompress_ctx callback
authorChao Yu <yuchao0@huawei.com>
Tue, 3 Mar 2020 08:57:07 +0000 (16:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 31 Mar 2020 03:46:26 +0000 (20:46 -0700)
commit23b1faaade19a2aa2d4c3e387b875d105675343e
tree744b7ab3dde6ec4bb0a240d7bbe7f9179e4a31f7
parent09ff48011e220e2b4f1d9ce2f472ecb63645cbfc
f2fs: compress: add .{init,destroy}_decompress_ctx callback

Add below two callback interfaces in struct f2fs_compress_ops:

int (*init_decompress_ctx)(struct decompress_io_ctx *dic);
void (*destroy_decompress_ctx)(struct decompress_io_ctx *dic);

Which will be used by zstd compress algorithm later.

In addition, this patch adds callback function pointer check, so that
specified algorithm can avoid defining unneeded functions.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c