diff options
author | Luo Meng <[email protected]> | 2020-10-20 09:36:31 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2020-10-21 23:22:38 -0400 |
commit | 1322181170bb01bce3c228b82ae3d5c6b793164f (patch) | |
tree | 2163ef6027003901e837202288f607fbd375c3be /lib/test_overflow.c | |
parent | ce8c59d197c824789e1ade6f25d36037b4f0faeb (diff) |
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.
Cc: [email protected]
Signed-off-by: Luo Meng <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions