bcachefs: Fix check_path() for snapshots
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 20 Oct 2021 21:59:38 +0000 (17:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:14 +0000 (17:09 -0400)
commit6e0c886d3ccd81d87054269b96de6e4eb6ba0edd
treefd8893b5906c87f0c31c336fb257572ecf2c9acb
parent6d76aefea1902a11c47e20fec5495d30a39891f3
bcachefs: Fix check_path() for snapshots

check_path() wasn't checking the snapshot ID when checking for directory
structure loops - so, snapshots would cause us to detect a loop that
wasn't actually a loop.

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