diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-26 22:19:17 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-28 04:46:35 +0300 |
commit | fd65378db9998a6deafdc4910ee1b01b377d6fee (patch) | |
tree | b289fa116cb51b05086807a8fa93d07557ed84af /fs/fs_struct.c | |
parent | 8d65b15f8d93638cfa9dae20a4274d5059c3b9d2 (diff) | |
download | linux-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