Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145567
b: refs/heads/master
c: a61d90d
h: refs/heads/master
i:
  145565: 3a6a15c
  145563: 8602bf0
  145559: 20469ba
  145551: e1c77f0
  145535: 3152019
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jun 9, 2009
1 parent 5af86ae commit f8fa893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 463aea1a1c49f1a7d4b50656dfd6c8bb33358b1b
refs/heads/master: a61d90d75d0f9e86432c45b496b4b0fbf0fd03dc
6 changes: 4 additions & 2 deletions trunk/fs/jbd/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int journal_submit_data_buffers(journal_t *journal,
spin_lock(&journal->j_list_lock);
}
/* Someone already cleaned up the buffer? */
if (!buffer_jbd(bh)
if (!buffer_jbd(bh) || bh2jh(bh) != jh
|| jh->b_transaction != commit_transaction
|| jh->b_jlist != BJ_SyncData) {
jbd_unlock_bh_state(bh);
Expand Down Expand Up @@ -478,7 +478,9 @@ void journal_commit_transaction(journal_t *journal)
spin_lock(&journal->j_list_lock);
continue;
}
if (buffer_jbd(bh) && jh->b_jlist == BJ_Locked) {
if (buffer_jbd(bh) && bh2jh(bh) == jh &&
jh->b_transaction == commit_transaction &&
jh->b_jlist == BJ_Locked) {
__journal_unfile_buffer(jh);
jbd_unlock_bh_state(bh);
journal_remove_journal_head(bh);
Expand Down

0 comments on commit f8fa893

Please sign in to comment.