f2fs: fix to set SBI_NEED_FSCK flag for inconsistent inode
authorChao Yu <yuchao0@huawei.com>
Fri, 9 Oct 2020 02:40:48 +0000 (10:40 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Oct 2020 17:29:31 +0000 (10:29 -0700)
commitd662fad143c0470ad7f46ea7b02da539f613d7d7
tree999f56159408a7497c84b0cfe11e0954447c8083
parentf6322f3f1212e005e7e6aa82ceb62be53030a64b
f2fs: fix to set SBI_NEED_FSCK flag for inconsistent inode

If compressed inode has inconsistent fields on i_compress_algorithm,
i_compr_blocks and i_log_cluster_size, we missed to set SBI_NEED_FSCK
to notice fsck to repair the inode, fix it.

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