Skip to content
Snippets Groups Projects
Commit fd65378d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8d65b15f
No related branches found
Tags amd-drm-next-5.16-2021-10-14
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment