Commit 4ff23a65 authored by Sheng Yong's avatar Sheng Yong Committed by Jaegeuk Kim

f2fs: set zstd compress level correctly

Fixes: cf30f6a5 ("lib: zstd: Add kernel-specific API")
Signed-off-by: default avatarSheng Yong <shengyong@oppo.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Reviewed-by: default avatarNick Terrell <terrelln@fb.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 66aee5aa
......@@ -346,7 +346,7 @@ static int zstd_init_compress_ctx(struct compress_ctx *cc)
if (!level)
level = F2FS_ZSTD_DEFAULT_CLEVEL;
params = zstd_get_params(F2FS_ZSTD_DEFAULT_CLEVEL, cc->rlen);
params = zstd_get_params(level, cc->rlen);
workspace_size = zstd_cstream_workspace_bound(&params.cParams);
workspace = f2fs_kvmalloc(F2FS_I_SB(cc->inode),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment