bcachefs: Fix snapshot_skiplist_good()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 28 Aug 2023 19:17:31 +0000 (15:17 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:12 +0000 (17:10 -0400)
commit097d4cc8fde898334569271c9b3e24d99788ade0
treea119b64a2346e3f611e1bd540dce22b90d86cf0b
parentcba37d81f5c34197e815bcd60f075be232ae6783
bcachefs: Fix snapshot_skiplist_good()

We weren't correctly checking snapshot skiplist nodes - we were checking
if they were in the same tree, not if they were an actual ancestor.

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