bcachefs: Make snapshot_is_ancestor() safe
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 4 Apr 2024 19:50:26 +0000 (15:50 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 4 Apr 2024 20:52:42 +0000 (16:52 -0400)
commit01e5f4fc0fead3ef19000e1d2fc748e87aac3f02
tree98981c9c62272fe4af81bfd44ad3d066c0914ce5
parente60aa472400b1ff8d0e6c563a2eb05916927f10a
bcachefs: Make snapshot_is_ancestor() safe

Snapshot table accesses generally need to be checking for invalid
snapshot ID now, fix one that was missed.

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