f2fs: compress: add sanity check during compressed cluster read
authorChao Yu <yuchao0@huawei.com>
Wed, 29 Jul 2020 13:21:35 +0000 (21:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 3 Aug 2020 17:32:51 +0000 (10:32 -0700)
commita86d27dd3dbed4d870c6582b8d4bf1fd0f653914
tree4fb7dfd07e5c41ba2b7f723ad915e21a81e7793b
parent8fa41016f098b5ea5b48ffc6042ecaf0282b809b
f2fs: compress: add sanity check during compressed cluster read

In f2fs_read_multi_pages(), we don't have to check cluster's type
again, since overwrite or partial truncation need page lock in
cluster which has already been held by reader, so cluster's type
is stable, let's change check condition to sanity check.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c