Skip to content

Commit 136d3e0

Browse files
Kemeng Shitytso
authored andcommitted
jbd2: remove dead check of JBD2_UNMOUNT in kjournald2
We always set JBD2_UNMOUNT with j_state_lock held in journal_kill_thread. In kjournald2, we check JBD2_UNMOUNT flag two times 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 d5c5457 commit 136d3e0

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
@@ -228,8 +228,6 @@ static int kjournald2(void *arg)
228228
if (transaction && time_after_eq(jiffies,
229229
transaction->t_expires))
230230
should_sleep = 0;
231-
if (journal->j_flags & JBD2_UNMOUNT)
232-
should_sleep = 0;
233231
if (should_sleep) {
234232
write_unlock(&journal->j_state_lock);
235233
schedule();

0 commit comments

Comments
 (0)