bcachefs: Rip bch2_snapshot_equiv() out of fsck
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 17 Apr 2024 03:08:39 +0000 (23:08 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:20 +0000 (17:29 -0400)
commit5a2d15213d3187ed3b059a2ec8865aa9172fd3a2
treef3b297837e4cc9224b8c6ee29e649aaaa274ec1b
parent9de40d77f0a070814cc1107f6794b219f10d8e0b
bcachefs: Rip bch2_snapshot_equiv() out of fsck

Originally, when deleting snapshots we didn't collapse redundant
snapshot nodes; thus, the notion of a class of equivalent snapshot nodes
leaked into fsck.

Now we do, so snapshot ID equivalence classes are purely local to
snapshot deletion.

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