bcachefs: start erasure coding after journal replay
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
f81b648d1f
commit
129550c4d0
@ -214,11 +214,6 @@ int bch2_fs_recovery(struct bch_fs *c)
|
|||||||
|
|
||||||
set_bit(BCH_FS_ALLOC_READ_DONE, &c->flags);
|
set_bit(BCH_FS_ALLOC_READ_DONE, &c->flags);
|
||||||
|
|
||||||
err = "cannot allocate memory";
|
|
||||||
ret = bch2_fs_ec_start(c);
|
|
||||||
if (ret)
|
|
||||||
goto err;
|
|
||||||
|
|
||||||
bch_verbose(c, "starting mark and sweep:");
|
bch_verbose(c, "starting mark and sweep:");
|
||||||
err = "error in recovery";
|
err = "error in recovery";
|
||||||
ret = bch2_initial_gc(c, &journal);
|
ret = bch2_initial_gc(c, &journal);
|
||||||
@ -279,6 +274,11 @@ int bch2_fs_recovery(struct bch_fs *c)
|
|||||||
bch_verbose(c, "quotas done");
|
bch_verbose(c, "quotas done");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = "cannot allocate memory";
|
||||||
|
ret = bch2_fs_ec_start(c);
|
||||||
|
if (ret)
|
||||||
|
goto err;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
bch2_journal_entries_free(&journal);
|
bch2_journal_entries_free(&journal);
|
||||||
kfree(clean);
|
kfree(clean);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user