Commit aa76bd33 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet
Browse files

bcachefs: Add a missing bch2_trans_relock() call



This was causing an assertion to pop in fsck, in one of the repair
paths.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent c79272d1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -795,6 +795,9 @@ bch2_trans_commit_get_rw_cold(struct btree_trans *trans)
	if (ret)
		return ret;

	if (!bch2_trans_relock(trans))
		return -EINTR;

	percpu_ref_get(&c->writes);
	return 0;
}