mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
jbd2: drop JBD2_ABORT_ON_SYNCDATA_ERR
Since ext4's data_err=abort mode doesn't depend on JBD2_ABORT_ON_SYNCDATA_ERR anymore, and nobody else uses it, we can drop it and only warn in jbd2 as it used to be long ago. Suggested-by: Jan Kara <jack@suse.cz> Signed-off-by: Baokun Li <libaokun1@huawei.com> Reviewed-by: Zhang Yi <yi.zhang@huawei.com> Link: https://patch.msgid.link/20250122110533.4116662-7-libaokun@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
@@ -738,10 +738,8 @@ start_journal_io:
|
||||
err = journal_finish_inode_data_buffers(journal, commit_transaction);
|
||||
if (err) {
|
||||
printk(KERN_WARNING
|
||||
"JBD2: Detected IO errors while flushing file data "
|
||||
"on %s\n", journal->j_devname);
|
||||
if (journal->j_flags & JBD2_ABORT_ON_SYNCDATA_ERR)
|
||||
jbd2_journal_abort(journal, err);
|
||||
"JBD2: Detected IO errors %d while flushing file data on %s\n",
|
||||
err, journal->j_devname);
|
||||
err = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user