bcachefs: Fix snapshot deletion
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 12 Jul 2022 13:11:52 +0000 (09:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:35 +0000 (17:09 -0400)
commit416cc426c0d79c65d85de52d3548a32de06ab3e8
tree5092a13fb5084bc3498cc331a53d067d06d0aa21
parente68914ca849fa51167e2136ad9f6b43c22956d3c
bcachefs: Fix snapshot deletion

Snapshots being deleted won't in general have a corresponding subvolume:
this fixes a spurious fsck error where we'd complain about a snapshot
pointing to a missing subvolume - but the subvolume had been deleted,
and the snapshot was pending deletion as well.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/subvolume.c