Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322200
b: refs/heads/master
c: 2e84f26
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara committed Aug 15, 2012
1 parent befa3f4 commit 1c7fef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48d1788493f874e5d32dccb2911a7bc91c248b4b
refs/heads/master: 2e84f2641ea91a730642ead558a4ee3bd52310c9
5 changes: 5 additions & 0 deletions trunk/fs/jbd/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,11 @@ static void mark_journal_empty(journal_t *journal)

BUG_ON(!mutex_is_locked(&journal->j_checkpoint_mutex));
spin_lock(&journal->j_state_lock);
/* Is it already empty? */
if (sb->s_start == 0) {
spin_unlock(&journal->j_state_lock);
return;
}
jbd_debug(1, "JBD: Marking journal as empty (seq %d)\n",
journal->j_tail_sequence);

Expand Down

0 comments on commit 1c7fef7

Please sign in to comment.