]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: compress: fix to check unreleased compressed cluster
authorSheng Yong <shengyong@oppo.com>
Fri, 12 Jan 2024 19:41:29 +0000 (03:41 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:59 +0000 (18:19 -0400)
commitd415e1c965992e9bffa32c7dbf9143ca2ce884ae
tree0115f169e94065a3481051575e61f7f3068a0229
parent75abfd61392b1db391bde6d738a30d685b843286
f2fs: compress: fix to check unreleased compressed cluster

[ Upstream commit eb8fbaa53374e0a2d4381190abfe708481517bbb ]

Compressed cluster may not be released due to we can fail in
release_compress_blocks(), fix to handle reserved compressed
cluster correctly in reserve_compress_blocks().

Fixes: 4c8ff7095bef ("f2fs: support data compression")
Signed-off-by: Sheng Yong <shengyong@oppo.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c