bcachefs: Check for extents with too many ptrs
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 17 Jun 2022 02:38:10 +0000 (22:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:34 +0000 (17:09 -0400)
commitb5f73fd79f4c710024ef4385626aecbaee6fc3f1
tree2765baf91e7c5a6ca776fda2a515258d77d9384d
parent1c6ff39445553f84f9a46c2c60a4768c7f4ef226
bcachefs: Check for extents with too many ptrs

We have a hardcoded maximum on number of pointers in an extent that's
used by some other data structures - notably bch_devs_list - but we
weren't actually checking for it. Oops.

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