diff options
author | 2025-01-22 19:41:28 +0800 | |
---|---|---|
committer | 2025-03-13 10:16:34 -0400 | |
commit | 8f984530c242c569bafecfa35bce969a9b8fb0dd (patch) | |
tree | b8f5dbe11939218f70ba9fe261c466de8f75e2bf /scripts/lib/kdoc/kdoc_files.py | |
parent | ext4: add more ext4_emergency_state() checks around sb_rdonly() (diff) | |
download | linux-rng-8f984530c242c569bafecfa35bce969a9b8fb0dd.tar.xz linux-rng-8f984530c242c569bafecfa35bce969a9b8fb0dd.zip |
ext4: correct behavior under errors=remount-ro mode
And after commit 95257987a638 ("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: 95257987a638 ("ext4: drop EXT4_MF_FS_ABORTED flag")
Closes: https://lore.kernel.org/all/22d652f6-cb3c-43f5-b2fe-0a4bb6516a04@huawei.com/
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250122114130.229709-6-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions