ext4: fix invalid inode checksum
During the stability test, there are some errors:
ext4_lookup:1590: inode #6967: comm fsstress: iget: checksum invalid.
If the inode->i_iblocks too big and doesn't set huge file flag, checksum
will not be recalculated when update the inode information to it's buffer.
If other inode marks the buffer dirty, then the inconsistent inode will
be flushed to disk.
Fix this problem by checking i_blocks in advance.
Signed-off-by: Luo Meng <email@example.com>
Reviewed-by: Darrick J. Wong <firstname.lastname@example.org>
Signed-off-by: Theodore Ts'o <email@example.com>
1 file changed