bcachefs: When fsck finds redundant snapshot keys, trigger snapshots cleanup
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 17 Jul 2022 03:21:15 +0000 (23:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:35 +0000 (17:09 -0400)
commitc7a09cb1b13995da938f4e1df52adeba44515d7d
tree925b629759aa24e3ecd042a269f6a8876b84e311
parent35f1a5034d81416ca820032452bed583f78f1f5e
bcachefs: When fsck finds redundant snapshot keys, trigger snapshots cleanup

Fsck now checks for keys in different snapshot IDs that are now
redundant due to other snapshots being deleted - it needs to for its own
algorithms to not get confused.

When it detects this it should re-run the post snapshot deletion cleanup
- this patch does that.

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