• Kent Overstreet's avatar
    bcachefs: Don't delete unlinked inodes before logged op resume · fd65378d
    Kent Overstreet authored
    Previously, check_inode() would delete unlinked inodes if they weren't
    on the deleted list - this code dating from before there was a deleted
    list.
    
    But, if we crash during a logged op (truncate or finsert/fcollapse) of
    an unlinked file, logged op resume will get confused if the inode has
    already been deleted - instead, just add it to the deleted list if it
    needs to be there; delete_dead_inodes runs after logged op resume.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    fd65378d
sb-errors_format.h 13.3 KB