Revert "jbd2: correctly compare tids with tid_geq function in jbd2_fc_begin_commit"

This reverts commit b9329bdfe6.
This commit is contained in:
Ksawlii 2024-11-24 00:23:03 +01:00
parent 564cec67ca
commit 79fa380062

View file

@ -740,7 +740,7 @@ int jbd2_fc_begin_commit(journal_t *journal, tid_t tid)
return -EINVAL; return -EINVAL;
write_lock(&journal->j_state_lock); write_lock(&journal->j_state_lock);
if (tid_geq(journal->j_commit_sequence, tid)) { if (tid <= journal->j_commit_sequence) {
write_unlock(&journal->j_state_lock); write_unlock(&journal->j_state_lock);
return -EALREADY; return -EALREADY;
} }