bcachefs: Add a hint for allocating new stripes
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 22 Aug 2019 21:09:16 +0000 (17:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:26 +0000 (17:08 -0400)
commit4e1510c3e9a053edc1fdfe56fc96009919ceebd8
tree5bafe6f114442e954908675a362cd09d3a6643c4
parent3fb5ebcdd4b0599ba8d20a322d322f3a1aaea381
bcachefs: Add a hint for allocating new stripes

This way we aren't doing a full linear scan every time we create a new
stripe.

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