]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Improve check_snapshot_exists()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 10 Oct 2024 01:28:11 +0000 (21:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 12 Oct 2024 09:02:48 +0000 (05:02 -0400)
commitc986dd7ecba185ad2a36b0815940f34deb2a8170
treee9a1899c7906d265bf0c4f53c737d8f7e7f6d3c9
parent9183c2b11e93f16dfd89a7fa09ec50c0be71f15a
bcachefs: Improve check_snapshot_exists()

Check if we have snapshot_trees or subvolumes that refer to the snapshot
node being reconstructed, and use them.

With this, the kill_btree_root test that blows away the snapshots btree
now passes, and we're able to successfully reconstruct.

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