Skip to content

Commit 17c51d8

Browse files
Shijie Luotytso
authored andcommitted
jbd2: remove pointless assertion in __journal_remove_journal_head
Only when jh->b_jcount = 0 in jbd2_journal_put_journal_head, we are allowed to call __journal_remove_journal_head. This assertion is meaningless, just remove it. Signed-off-by: Shijie Luo <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 8d6ce13 commit 17c51d8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/jbd2/journal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2560,7 +2560,6 @@ static void __journal_remove_journal_head(struct buffer_head *bh)
25602560
{
25612561
struct journal_head *jh = bh2jh(bh);
25622562

2563-
J_ASSERT_JH(jh, jh->b_jcount >= 0);
25642563
J_ASSERT_JH(jh, jh->b_transaction == NULL);
25652564
J_ASSERT_JH(jh, jh->b_next_transaction == NULL);
25662565
J_ASSERT_JH(jh, jh->b_cp_transaction == NULL);

0 commit comments

Comments
 (0)