bcachefs: Guard against insufficient devices to create stripes
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 6 Nov 2023 16:59:05 +0000 (11:59 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Nov 2023 02:42:22 +0000 (21:42 -0500)
commit4d6128dca6d940015fe2aa383ec1a0eeb9632f08
tree3a95a0539dba892ab22d7f8af1b67d0131a57568
parent03cc1e67a243cbb2c85d5fd84f369449f94d4269
bcachefs: Guard against insufficient devices to create stripes

We can't create stripes if we don't have enough devices - this
manifested as an integer underflow bug later.

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