bcachefs: bcachefs_metadata_version_deleted_inodes
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 17 Jul 2023 04:56:29 +0000 (00:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:09 +0000 (17:10 -0400)
commitdde8cb11645b7d95766dfd13f273facde27923a9
tree001d854afb26fa9424097129f97e0df095e2e037
parent0a6d694584aeb739b976bf69646fa3c23ee117c3
bcachefs: bcachefs_metadata_version_deleted_inodes

Add a new bitset btree for inodes pending deletion; this means we no
longer have to scan the full inodes btree after an unclean shutdown.

Specifically, this adds:
 - a trigger to update the deleted_inodes btree based on changes to the
   inodes btree
 - a new recovery pass
 - and check_inodes is now only a fsck pass.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/inode.c
fs/bcachefs/inode.h
fs/bcachefs/recovery_types.h