• Kent Overstreet's avatar
    bcachefs: Fix repair for extent past end of inode · 0d06b4ec
    Kent Overstreet authored
    When we find an extent past an inode's i_size, we need to do the
    deletion in the inode's snapshot (which will emit a whiteout if
    necessary); and we also need to note that we now have an a key at that
    position and snapshot, so that we don't go into an infinite loop.
    
    Also, switch to walking inodes in reverse older, oldest snapshot to
    newest, so that we emit the fewest whiteouts possible.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    0d06b4ec
fsck.c 56.8 KB