Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192
b: refs/heads/master
c: d13df84
h: refs/heads/master
v: v3
  • Loading branch information
akpm@osdl.org authored and Linus Torvalds committed Apr 16, 2005
1 parent 07f108b commit b8253ff
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 19272d4385126c2ac369c9f6137a27a08aee50d1
refs/heads/master: d13df84ff7f3f3e26a9643c1d3cbf94cef9b5b59
13 changes: 11 additions & 2 deletions trunk/fs/jbd/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,17 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh)
}
}
} else if (transaction == journal->j_committing_transaction) {
/* If it is committing, we simply cannot touch it. We
if (jh->b_jlist == BJ_Locked) {
/*
* The buffer is on the committing transaction's locked
* list. We have the buffer locked, so I/O has
* completed. So we can nail the buffer now.
*/
may_free = __dispose_buffer(jh, transaction);
goto zap_buffer;
}
/*
* If it is committing, we simply cannot touch it. We
* can remove it's next_transaction pointer from the
* running transaction if that is set, but nothing
* else. */
Expand Down Expand Up @@ -1887,7 +1897,6 @@ int journal_invalidatepage(journal_t *journal,
unsigned int next_off = curr_off + bh->b_size;
next = bh->b_this_page;

/* AKPM: doing lock_buffer here may be overly paranoid */
if (offset <= curr_off) {
/* This block is wholly outside the truncation point */
lock_buffer(bh);
Expand Down

0 comments on commit b8253ff

Please sign in to comment.