jbd2: don't call get_bh() before calling __jbd2_journal_remove_checkpoint()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 4 Sep 2014 22:09:22 +0000 (18:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Sep 2014 22:09:22 +0000 (18:09 -0400)
commitdc6e8d669cf5cb3ff84707c372c0a2a8a5e80845
treea96b09d5670e5f4a502dc246de2d9526a2bb261a
parent754cfed6bbcfdea6afb14f2686f7f8d71e94d4e2
jbd2: don't call get_bh() before calling __jbd2_journal_remove_checkpoint()

The __jbd2_journal_remove_checkpoint() doesn't require an elevated
b_count; indeed, until the jh structure gets released by the call to
jbd2_journal_put_journal_head(), the bh's b_count is elevated by
virtue of the existence of the jh structure.

Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/checkpoint.c