mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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>
This commit is contained in:
parent
4eb9bd13eb
commit
d5c545735a
|
|
@ -224,8 +224,6 @@ static int kjournald2(void *arg)
|
|||
|
||||
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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user