summaryrefslogtreecommitdiffstats
path: root/fs/jbd2/journal.c
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2024-05-14 13:24:36 +0200
committerTheodore Ts'o <tytso@mit.edu>2024-06-27 16:20:26 +0200
commitd5c545735aa0d6443460ac407d35f8fa235d5102 (patch)
treed3f46b249696a9382d8164211f4adc8ec3a6cbb5 /fs/jbd2/journal.c
parentjbd2: use bh_in instead of jh2bh(jh_in) to simplify code (diff)
downloadlinux-d5c545735aa0d6443460ac407d35f8fa235d5102.tar.xz
linux-d5c545735aa0d6443460ac407d35f8fa235d5102.zip
jbd2: remove dead equality check of j_commit_[sequence/request] in kjournald2
The j_commit_[sequence/request] are updated with j_state_lock held during runtime. In kjournald2, two equality checks of j_commit_[sequence/request] are under the same j_state_lock, then the second check is unnecessary. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Zhang Yi <yi.zhang@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20240514112438.1269037-8-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to '')
-rw-r--r--fs/jbd2/journal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 1ea96ab9374a..079b3eeaa4d5 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -224,8 +224,6 @@ loop:
prepare_to_wait(&journal->j_wait_commit, &wait,
TASK_INTERRUPTIBLE);
- if (journal->j_commit_sequence != journal->j_commit_request)
- should_sleep = 0;
transaction = journal->j_running_transaction;
if (transaction && time_after_eq(jiffies,
transaction->t_expires))