This patch addresses minor issues in compression chksum.
Fixes:
b28f047b28c5 ("f2fs: compress: support chksum")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
ret = cops->decompress_pages(dic);
- if (!ret && fi->i_compress_flag & 1 << COMPRESS_CHKSUM) {
+ if (!ret && (fi->i_compress_flag & 1 << COMPRESS_CHKSUM)) {
u32 provided = le32_to_cpu(dic->cbuf->chksum);
u32 calculated = f2fs_crc32(sbi, dic->cbuf->cdata, dic->clen);
provided, calculated);
}
set_sbi_flag(sbi, SBI_NEED_FSCK);
- WARN_ON_ONCE(1);
}
}