diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-24 04:22:20 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:19 -0400 |
commit | 09943313d70fd04eb9475ef9a83c1538234874fe (patch) | |
tree | b095d2efa1d0db1c7eb20cd8784fe0bffd81ab8b /fs/bcachefs/recovery.c | |
parent | 7243498de74d32d0afe3b923cd893a6b49f70c3c (diff) | |
download | lwn-09943313d70fd04eb9475ef9a83c1538234874fe.tar.gz lwn-09943313d70fd04eb9475ef9a83c1538234874fe.zip |
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>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 29fe6260ace5..bd552a942ac6 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1429,6 +1429,8 @@ int bch2_fs_initialize(struct bch_fs *c) percpu_ref_put(&ca->ref); goto err; } + + ca->new_fs_bucket_idx = 0; } err = "error creating root snapshot node"; |