diff options
author | Chao Yu <[email protected]> | 2023-08-28 22:04:16 +0800 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2023-09-12 13:49:33 -0700 |
commit | 2aaea533bf063ed3b442df5fe5f6abfc538054c9 (patch) | |
tree | e826db4bcc24b86d7b166b658379c291fe310e3f /lib/assoc_array.c | |
parent | b0327c84e91a0f4f0abced8cb83ec86a7083f086 (diff) |
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.
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions