• Jan Kara's avatar
    jbd2: remove bh_state lock from checkpointing code · 932bb305
    Jan Kara authored
    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
    So we can safely remove bh_state lock from all of checkpointing code which
    makes it considerably prettier.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o's avatar"Theodore Ts'o" <tytso@mit.edu>
journal-head.h 2.71 KB