• Kent Overstreet's avatar
    bcachefs: Add an assertion in bch2_journal_pin_set() · df8e13cc
    Kent Overstreet authored
    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>
    df8e13cc
journal_reclaim.h 2.27 KB