summaryrefslogtreecommitdiff
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-09-26 22:19:17 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-28 04:46:35 +0300
commitfd65378db9998a6deafdc4910ee1b01b377d6fee (patch)
treeb289fa116cb51b05086807a8fa93d07557ed84af /fs/fs_struct.c
parent8d65b15f8d93638cfa9dae20a4274d5059c3b9d2 (diff)
downloadlinux-fd65378db9998a6deafdc4910ee1b01b377d6fee.tar.xz
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>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions