diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-24 17:09:44 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:12 -0400 |
commit | dfe9bfb32e380df67d25cd5afb887b3466230e03 (patch) | |
tree | 165d9ff7b5a4e9c3e701b69758be49e9e91edaf2 /fs/bcachefs/recovery.c | |
parent | ad7ae8d63fa82e5d713e73a1a6a4ca9728f84898 (diff) | |
download | lwn-dfe9bfb32e380df67d25cd5afb887b3466230e03.tar.gz lwn-dfe9bfb32e380df67d25cd5afb887b3466230e03.zip |
bcachefs: Stripes now properly subject to gc
gc now verifies the contents of the stripes radix tree, important for
persistent alloc info
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index ddfba16a2998..1cb0c9940ec1 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -305,6 +305,9 @@ int bch2_fs_initialize(struct bch_fs *c) set_bit(BCH_FS_ALLOC_READ_DONE, &c->flags); + for (i = 0; i < BTREE_ID_NR; i++) + bch2_btree_root_alloc(c, i); + ret = bch2_initial_gc(c, &journal); if (ret) goto err; @@ -316,9 +319,6 @@ int bch2_fs_initialize(struct bch_fs *c) goto err; } - for (i = 0; i < BTREE_ID_NR; i++) - bch2_btree_root_alloc(c, i); - /* * journal_res_get() will crash if called before this has * set up the journal.pin FIFO and journal.cur pointer: |