]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Rework allocating buckets for stripes
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 19 Jan 2021 04:26:42 +0000 (23:26 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:51 +0000 (17:08 -0400)
commit6c7585b098c519c157cca4ca1c974321f3903ad4
treee675e6afe431a8d08adc0f8a1052474a56dcbfa8
parentf9ef45ad434ba85363aab6d74fa48499f7ea6499
bcachefs: Rework allocating buckets for stripes

Allocating buckets for existing stripes was busted, in part because the
data structures were too contorted. This reworks new stripes so that we
have an array of open buckets that matches blocks in the stripe, and
it's sparse if we're reusing an existing 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/ec.c
fs/bcachefs/ec.h