bcachefs: Rewrite bch2_bucket_alloc_new_fs()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 24 Dec 2021 09:22:20 +0000 (04:22 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:19 +0000 (17:09 -0400)
commit09943313d70fd04eb9475ef9a83c1538234874fe
treeb095d2efa1d0db1c7eb20cd8784fe0bffd81ab8b
parent7243498de74d32d0afe3b923cd893a6b49f70c3c
bcachefs: Rewrite bch2_bucket_alloc_new_fs()

This changes bch2_bucket_alloc_new_fs() to a simple bump allocator that
doesn't need to use the in memory bucket array, part of a larger patch
series to entirely get rid of the in memory bucket array, except for
gc/fsck.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_foreground.c
fs/bcachefs/bcachefs.h
fs/bcachefs/recovery.c
fs/bcachefs/super.c
fs/bcachefs/super.h