bcachefs: Fix check_inodes()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 4 Nov 2021 00:25:35 +0000 (20:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:16 +0000 (17:09 -0400)
commit47f80bbf38df59e41c98fd1f9681cf63af82a5fd
tree213f8de8fe7ba49c16d0238d35d465b17629daa8
parentd647db314adb8b5b60224a7604566746e7203c22
bcachefs: Fix check_inodes()

We were starting at the wrong btree position, and thus not actually
checking any inodes - oops.

Also, make check_key_has_snapshot() a mustfix fsck error, since later
fsck code assumes that all keys have valid snapshot IDs.

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