Commit df8e13cc authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Add an assertion in bch2_journal_pin_set()



Previously, bch2_journal_pin_set() would silently ignore a request to
pin a journal sequence number that was no longer dirty, because it was
used internally by bch2_journal_pin_copy() which could race with the src
pin being flushed.

Split these apart so that we can properly assert that @seq is a
currently dirty journal sequence number - this is almost always a bug.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent fa5df9e7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment