bcachefs: Update fsck for snapshots
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 20 Apr 2021 04:15:44 +0000 (00:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:12 +0000 (17:09 -0400)
commitef1669ffc69c4926066451e1d0bc32e5ed6fc7d7
treecb24aa5b88d092e601c972e10248f01926c5aaa9
parent6fed42bb7750e217b0d1169ccfccc7639a3e1d3f
bcachefs: Update fsck for snapshots

This updates the fsck algorithms to handle snapshots - meaning there
will be multiple versions of the same key (extents, inodes, dirents,
xattrs) in different snapshots, and we have to carefully consider which
keys are visible in which snapshot.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_update.h
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/fsck.c