• Kent Overstreet's avatar
    bcachefs: Fix incorrect use of bch2_extent_atomic_end() · a40d97a7
    Kent Overstreet authored
    bch2_extent_atomic_end counts the number of iterators requried for
    marking overwrites - but journal replay never marks overwrites, so that
    part was incorrect. And counting iterators for the key being inserted
    should be unnecessary because we did that prior to the key being
    inserted before it was first journalled.
    
    This should fix an iterator overflow bug - the iterators for walking
    overwrites were totally unneeded.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    a40d97a7
recovery.c 24.8 KB