-
- Downloads
bcachefs: Don't delete unlinked inodes before logged op resume
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:
Kent Overstreet <kent.overstreet@linux.dev>
Showing
- fs/bcachefs/fsck.c 31 additions, 18 deletionsfs/bcachefs/fsck.c
- fs/bcachefs/recovery_passes_types.h 1 addition, 1 deletionfs/bcachefs/recovery_passes_types.h
- fs/bcachefs/sb-errors_format.h 2 additions, 1 deletionfs/bcachefs/sb-errors_format.h
- fs/bcachefs/super-io.c 2 additions, 1 deletionfs/bcachefs/super-io.c
Loading
Please register or sign in to comment