diff options
| author | Sheng Yong <shengyong@oppo.com> | 2022-11-17 23:10:54 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-31 13:32:36 +0100 |
| commit | 1f9d91ffc383768a6402bc55e56dcc8bd011bba4 (patch) | |
| tree | dfda1c50ee412c76fec3ff09191fcf3da9d74467 /fs/f2fs | |
| parent | 65c73bc771d611d016b00cc8251640c68b22e52c (diff) | |
| download | linux-1f9d91ffc383768a6402bc55e56dcc8bd011bba4.tar.gz linux-1f9d91ffc383768a6402bc55e56dcc8bd011bba4.tar.bz2 linux-1f9d91ffc383768a6402bc55e56dcc8bd011bba4.zip | |
f2fs: set zstd compress level correctly
[ Upstream commit 4ff23a6547b81ca22adb852dfe93ee5fc45328ac ]
Fixes: cf30f6a5f0c6 ("lib: zstd: Add kernel-specific API")
Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Nick Terrell <terrelln@fb.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/f2fs')
| -rw-r--r-- | fs/f2fs/compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index d315c2de136f..74d3f2d2271f 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -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(¶ms.cParams); workspace = f2fs_kvmalloc(F2FS_I_SB(cc->inode), |
