Commit 357cc4c
ext4: fix invalid inode checksum
commit 1322181 upstream.
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]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 5676680 commit 357cc4c
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4982 | 4982 | | |
4983 | 4983 | | |
4984 | 4984 | | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
| 4988 | + | |
| 4989 | + | |
| 4990 | + | |
4985 | 4991 | | |
4986 | 4992 | | |
4987 | 4993 | | |
| |||
5015 | 5021 | | |
5016 | 5022 | | |
5017 | 5023 | | |
5018 | | - | |
5019 | | - | |
5020 | | - | |
5021 | | - | |
5022 | | - | |
5023 | 5024 | | |
5024 | 5025 | | |
5025 | 5026 | | |
| |||
0 commit comments