Commit eee0023
ext4: commit super block if fs record error when journal record without error
Now, 'es->s_state' maybe covered by recover journal. And journal errno
maybe not recorded in journal sb as IO error. ext4_update_super() only
update error information when 'sbi->s_add_error_count' large than zero.
Then 'EXT4_ERROR_FS' flag maybe lost.
To solve above issue just recover 'es->s_state' error flag after journal
replay like error info.
Signed-off-by: Ye Bin <[email protected]>
Reviewed-by: Baokun Li <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 62913ae commit eee0023
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5959 | 5959 | | |
5960 | 5960 | | |
5961 | 5961 | | |
| 5962 | + | |
5962 | 5963 | | |
5963 | 5964 | | |
5964 | 5965 | | |
| |||
5967 | 5968 | | |
5968 | 5969 | | |
5969 | 5970 | | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
5970 | 5979 | | |
5971 | 5980 | | |
5972 | 5981 | | |
| |||
0 commit comments