Commit 8f98453
ext4: correct behavior under errors=remount-ro mode
And after commit 9525798 ("ext4: drop EXT4_MF_FS_ABORTED flag") in
v6.6-rc1, the EXT4_FLAGS_SHUTDOWN bit is set in ext4_handle_error() under
errors=remount-ro mode. This causes the read to fail even when the error
is triggered in errors=remount-ro mode.
To correct the behavior under errors=remount-ro, EXT4_FLAGS_SHUTDOWN is
replaced by the newly introduced EXT4_FLAGS_EMERGENCY_RO. This new flag
only prevents writes, matching the previous behavior with SB_RDONLY.
Fixes: 9525798 ("ext4: drop EXT4_MF_FS_ABORTED flag")
Closes: https://lore.kernel.org/all/[email protected]/
Suggested-by: Jan Kara <[email protected]>
Signed-off-by: Baokun Li <[email protected]>
Reviewed-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>1 parent 5bc27f4 commit 8f98453
1 file changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 696 | + | |
| 697 | + | |
701 | 698 | | |
702 | 699 | | |
703 | 700 | | |
| |||
723 | 720 | | |
724 | 721 | | |
725 | 722 | | |
726 | | - | |
| 723 | + | |
727 | 724 | | |
728 | 725 | | |
729 | 726 | | |
730 | 727 | | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
736 | 732 | | |
| 733 | + | |
737 | 734 | | |
738 | 735 | | |
739 | 736 | | |
| |||
0 commit comments