bcachefs: Run check_key_has_snapshot in snapshot_delete_keys()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 26 May 2024 16:38:30 +0000 (12:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 15:29:26 +0000 (11:29 -0400)
commit08f50005e09f3bf74a7cb5fd86335d3c4077df51
treefb67f30c75b547e73614efe5416dea1343305c70
parent82af5ceb5d9d1f0613be3b9161ec1104b85f00b8
bcachefs: Run check_key_has_snapshot in snapshot_delete_keys()

delete_dead_snapshots now runs before the main fsck.c passes which check
for keys for invalid snapshots; thus, it needs those checks as well.

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