bcachefs: BCH_FSCK_ERR_snapshot_key_missing_inode_snapshot
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 1 May 2025 19:14:04 +0000 (15:14 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:43 +0000 (20:14 -0400)
commit0afdf4969e0ac24f63b499c6c75731564a072eb8
treed901a098a7e9b2a301d486945a4306b12d90b67b
parent855070dc0b349eb4f17cfbe7e73829b1b2851bdc
bcachefs: BCH_FSCK_ERR_snapshot_key_missing_inode_snapshot

We're going to be doing some snapshot deletion performance improvements,
and those will strictly require that if an extent/dirent/xattr is
present, an inode is present in that snapshot ID.

We already check for this, but we don't repair it on disk: this patch
adds that repair and turns it into a real fsck_err().

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c