From: Jan Kara Date: Wed, 14 Mar 2012 02:45:25 +0000 (-0400) Subject: jbd2: remove bh_state lock from checkpointing code X-Git-Tag: v3.4-rc1~75^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=932bb305ba2a01cd62809644d569f004e77a4355;p=pandora-kernel.git jbd2: remove bh_state lock from checkpointing code All accesses to checkpointing entries in journal_head are protected by j_list_lock. Thus __jbd2_journal_remove_checkpoint() doesn't really need bh_state lock. Also the only part of journal head that the rest of checkpointing code needs to check is jh->b_transaction which is safe to read under j_list_lock. So we can safely remove bh_state lock from all of checkpointing code which makes it considerably prettier. Signed-off-by: Jan Kara Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed