bcachefs: Check that keys are in the correct btrees
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 18 Apr 2021 03:18:17 +0000 (23:18 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:01 +0000 (17:09 -0400)
commit27cc532ef2d7c3bc4687547f59fe5d4a82affab7
treef24f638d9c608e095bffa0e144305843e5784aae
parent04903131db3e09a6a074755071c46febc7e2449f
bcachefs: Check that keys are in the correct btrees

We've started seeing bug reports of pointers to btree nodes being
detected in leaf nodes. This should catch that before it's happened, and
it's something we should've been checking anyways.

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