Skip to content

Commit d5c5457

Browse files
Kemeng Shitytso
authored andcommitted
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 <[email protected]> Reviewed-by: Zhang Yi <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 4eb9bd1 commit d5c5457

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/jbd2/journal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ static int kjournald2(void *arg)
224224

225225
prepare_to_wait(&journal->j_wait_commit, &wait,
226226
TASK_INTERRUPTIBLE);
227-
if (journal->j_commit_sequence != journal->j_commit_request)
228-
should_sleep = 0;
229227
transaction = journal->j_running_transaction;
230228
if (transaction && time_after_eq(jiffies,
231229
transaction->t_expires))

0 commit comments

Comments
 (0)