f2fs: fix to check i_compr_blocks correctly
authorChao Yu <yuchao0@huawei.com>
Tue, 25 Feb 2020 10:26:46 +0000 (18:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 10 Mar 2020 16:18:29 +0000 (09:18 -0700)
commitd940aa07ed464d884d254f6f3bf321fe5b01d59a
treec28775dec4bab7551744dbe30cfdb3533ed59558
parentdf77fbd8c5b222c680444801ffd20e8bbc90a56e
f2fs: fix to check i_compr_blocks correctly

inode.i_blocks counts based on 512byte sector, we need to convert
to 4kb sized block count before comparing to i_compr_blocks.

In addition, add to print message when sanity check on inode
compression configs failed.

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