bcachefs: Refactor stripe creation
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 7 Jul 2020 02:33:54 +0000 (22:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:42 +0000 (17:08 -0400)
commitf6b94a3baa956ff10a52a545a9ad60f35e88e683
treeb973107ffc3a29c6dd0febbb7b8c42faa7bb2e97
parent703e2a43bf30c1d5610fa7d1a823911d96487dac
bcachefs: Refactor stripe creation

Prep work for the patch to update existing stripes with new data blocks.
This moves allocating new stripes into ec.c, and also sets up the data
structures so that we can handly only allocating some of the blocks in a
stripe.

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