bcachefs: Fix bch2_check_nlinks() for snapshots
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Nov 2023 02:17:19 +0000 (21:17 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 15 Nov 2023 04:44:44 +0000 (23:44 -0500)
commitdb18ef1a02bc2cd924f86b2582302f2c2711b67c
treee860b1a0cb1fe459c4e4ff07f9490fbe4e596add
parent7125063fc6dfb77138b3a100527f3d8f9203ff2a
bcachefs: Fix bch2_check_nlinks() for snapshots

When searching the link table for the matching inode, we were searching
for a specific - incorrect - snapshot ID as well, causing us to fail to
find the inode.

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