]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: fsck: Fix check_path_loop() + snapshots
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 20:16:38 +0000 (16:16 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 23:05:02 +0000 (19:05 -0400)
commit495ba899d5a163d4cd50627ab48e3edd80dfa3a4
treef17c3b45fe15c08725b0c7d84c7db572248522c1
parent583ba52a40dd1f9328e2626056f0797d273817e7
bcachefs: fsck: Fix check_path_loop() + snapshots

A path exists in a particular snapshot: we should do the pathwalk in the
snapshot ID of the inode we started from, _not_ change snapshot ID as we
walk inodes and dirents.

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