UPSTREAM: f2fs: compress: do sanity check on cluster when CONFIG_F2FS_CHECK_FS is on
This patch covers sanity check logic on cluster w/ CONFIG_F2FS_CHECK_FS, otherwise, there will be performance regression while querying cluster mapping info. Callers of f2fs_is_compressed_cluster() only care about whether cluster is compressed or not, rather than # of valid blocks in compressed cluster, so, let's adjust f2fs_is_compressed_cluster()'s logic according to caller's requirement. Bug: 325092012 Signed-off-by:Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit 2aaea533) (cherry picked from https://android-review.googlesource.com/q/commit:24492cb6b975d0a8b70aef2d9ec03652ebd38d5a) Merged-In: Ie3ddef60c5a3cdb2b18b0261f7188d39b7147935 Change-Id: Ie3ddef60c5a3cdb2b18b0261f7188d39b7147935
Loading