Revert "jbd2: stop waiting for space when jbd2_cleanup_journal_tail() returns error"

This reverts commit 7477cade32.
This commit is contained in:
Ksawlii 2024-11-24 00:23:03 +01:00
parent 79fa380062
commit f542f45344

View file

@ -125,11 +125,8 @@ __releases(&journal->j_state_lock)
write_unlock(&journal->j_state_lock);
if (chkpt) {
jbd2_log_do_checkpoint(journal);
} else if (jbd2_cleanup_journal_tail(journal) <= 0) {
/*
* We were able to recover space or the
* journal was aborted due to an error.
*/
} else if (jbd2_cleanup_journal_tail(journal) == 0) {
/* We were able to recover space; yay! */
;
} else if (has_transaction) {
/*