bcachefs: bch2_bucket_alloc_new_fs() no longer depends on bucket marks
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 24 Dec 2021 09:27:01 +0000 (04:27 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:19 +0000 (17:09 -0400)
commit77170d0dd7020ed72cd748a0c354bf0c0345b6b3
treeba40b7cfadef7c6affbd2c5a933339d9dc19823e
parent09943313d70fd04eb9475ef9a83c1538234874fe
bcachefs: bch2_bucket_alloc_new_fs() no longer depends on bucket marks

Now that bch2_bucket_alloc_new_fs() isn't looking at bucket marks to
decide what buckets are eligible to allocate, we can clean up the
filesystem initialization and device add paths. Previously, we had to
use ancient code to mark superblock/journal buckets in the in memory
bucket marks as we allocated them, and then zero that out and re-do that
marking using the newer transational bucket mark paths. Now, we can
simply delete the in-memory bucket marking.

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