diff options
| author | Baokun Li <[email protected]> | 2025-01-22 11:41:26 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2025-03-13 14:16:34 +0000 |
| commit | 0a1b2f5ea98764221ccc1043b8dc27a8c0225476 (patch) | |
| tree | 715683e257162a67e33521799ab6b1222823b72e /fs/jbd2/commit.c | |
| parent | ext4: add EXT4_FLAGS_EMERGENCY_RO bit (diff) | |
| download | kernel-0a1b2f5ea98764221ccc1043b8dc27a8c0225476.tar.gz kernel-0a1b2f5ea98764221ccc1043b8dc27a8c0225476.zip | |
ext4: add ext4_emergency_state() helper function
Since both SHUTDOWN and EMERGENCY_RO are emergency states of the ext4 file
system, and they are checked in similar locations, we have added a helper
function, ext4_emergency_state(), to determine whether the current file
system is in one of these two emergency states.
Then, replace calls to ext4_forced_shutdown() with ext4_emergency_state()
in those functions that could potentially trigger write operations.
Signed-off-by: Baokun Li <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Zhang Yi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
