]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: check jh->b_transaction without taking j_list_lock
authorTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2014 05:07:19 +0000 (00:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 9 Mar 2014 05:07:19 +0000 (00:07 -0500)
commit63c68f070f82b2952982bfa0599e680e0cebb02e
tree9493b41df7e513716f41fc10105b02193dcb5d9e
parent7eb9ab6b73ca7980fd76004327c3aa8393d21927
jbd2: check jh->b_transaction without taking j_list_lock

jh->b_transaction is adequately protected for reading by the
jbd_lock_bh_state(bh), so we don't need to take j_list_lock in
__journal_try_to_free_buffer().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/transaction.c