]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: compress: fix to assign cc.cluster_idx correctly
authorChao Yu <yuchao0@huawei.com>
Mon, 10 May 2021 09:30:32 +0000 (17:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 May 2021 21:48:12 +0000 (14:48 -0700)
commitbf09ea498a3853c10d644ae2d507d12650c899db
tree1c2a7aa736f11f1080c1e9782a28a4476859dd06
parentb7eda2bd157fcdfcc822d32dc2ada6c2c87b6141
f2fs: compress: fix to assign cc.cluster_idx correctly

In f2fs_destroy_compress_ctx(), after f2fs_destroy_compress_ctx(),
cc.cluster_idx will be cleared w/ NULL_CLUSTER, f2fs_cluster_blocks()
may check wrong cluster metadata, fix it.

Fixes: 8a0d456ed11c ("f2fs: support data compression")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h