Skip to content

Commit 150c174

Browse files
amir73iltytso
authored andcommitted
ext4: return error on syncfs after shutdown
This is the logic behavior and one that we would like to verify using a generic fstest similar to xfs/546. Link: https://lore.kernel.org/fstests/20240830152648.GE6216@frogsfrogsfrogs/ Suggested-by: Darrick J. Wong <[email protected]> Signed-off-by: Amir Goldstein <[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 a9cdf82 commit 150c174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6304,7 +6304,7 @@ static int ext4_sync_fs(struct super_block *sb, int wait)
63046304
struct ext4_sb_info *sbi = EXT4_SB(sb);
63056305

63066306
if (unlikely(ext4_forced_shutdown(sb)))
6307-
return 0;
6307+
return -EIO;
63086308

63096309
trace_ext4_sync_fs(sb, wait);
63106310
flush_workqueue(sbi->rsv_conversion_wq);

0 commit comments

Comments
 (0)