diff options
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r-- | fs/jbd2/journal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index fd1d7557a098..34ef98057202 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -1477,7 +1477,9 @@ int jbd2_journal_destroy(journal_t *journal) | |||
1477 | spin_lock(&journal->j_list_lock); | 1477 | spin_lock(&journal->j_list_lock); |
1478 | while (journal->j_checkpoint_transactions != NULL) { | 1478 | while (journal->j_checkpoint_transactions != NULL) { |
1479 | spin_unlock(&journal->j_list_lock); | 1479 | spin_unlock(&journal->j_list_lock); |
1480 | mutex_lock(&journal->j_checkpoint_mutex); | ||
1480 | jbd2_log_do_checkpoint(journal); | 1481 | jbd2_log_do_checkpoint(journal); |
1482 | mutex_unlock(&journal->j_checkpoint_mutex); | ||
1481 | spin_lock(&journal->j_list_lock); | 1483 | spin_lock(&journal->j_list_lock); |
1482 | } | 1484 | } |
1483 | 1485 | ||