Commit eba4b4b7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] JBD: buffer freeing non-race comment

Add a comment describing why a race isn't there.
parent dd71e33f
......@@ -1643,6 +1643,11 @@ int journal_try_to_free_buffers(journal_t *journal,
bh = head;
do {
jbd_lock_bh_state(bh);
/*
* We don't have to worry about the buffer being pulled off its
* journal_head in here, because __try_to_free_cp_buf runs
* under jbd_lock_bh_state()
*/
if (buffer_jbd(bh) &&
!__journal_try_to_free_buffer(journal, bh)) {
jbd_unlock_bh_state(bh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment