Unverified Commit 0e8f2fe7 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1377 [sync] PR-1376: jbd2: Check 'jh->b_transaction' before remove it from checkpoint

parents d57eaffd a49943e0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -641,6 +641,8 @@ int jbd2_journal_try_remove_checkpoint(struct journal_head *jh)
{
	struct buffer_head *bh = jh2bh(jh);

	if (jh->b_transaction)
		return -EBUSY;
	if (!trylock_buffer(bh))
		return -EBUSY;
	if (buffer_dirty(bh)) {