diff options
author | Chao Yu <chao@kernel.org> | 2024-02-12 19:08:18 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:17:24 +0300 |
commit | bdb95f87a7f880eeda7e5380ce6af86dff93ad03 (patch) | |
tree | 69ca115f58f94e8866240ac6152fef68ae413856 /net/sunrpc | |
parent | 64582cc5357cd984724cfb0835b4a34d9c279d31 (diff) | |
download | linux-bdb95f87a7f880eeda7e5380ce6af86dff93ad03.tar.xz |
f2fs: compress: fix to check zstd compress level correctly in mount option
[ Upstream commit e39602da752cd1d0462e3fa04074146f6f2803f6 ]
f2fs only support to config zstd compress level w/ a positive number due
to layout design, but since commit e0c1b49f5b67 ("lib: zstd: Upgrade to
latest upstream zstd version 1.4.10"), zstd supports negative compress
level, so that zstd_min_clevel() may return a negative number, then w/
below mount option, .compress_level can be configed w/ a negative number,
which is not allowed to f2fs, let's add check condition to avoid it.
mount -o compress_algorithm=zstd:4294967295 /dev/sdx /mnt/f2fs
Fixes: 00e120b5e4b5 ("f2fs: assign default compression level")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions