From 79fa380062311a052806ed784ec160790b020be1 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:03 +0100 Subject: [PATCH] Revert "jbd2: correctly compare tids with tid_geq function in jbd2_fc_begin_commit" This reverts commit b9329bdfe66ff9832dada3c0b91ca6cd80e4b198. --- fs/jbd2/journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index d3ab8cccc..ae16911a2 100755 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -740,7 +740,7 @@ int jbd2_fc_begin_commit(journal_t *journal, tid_t tid) return -EINVAL; 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); return -EALREADY; }