mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
Revert "bcachefs: start erasure coding after journal replay"
This reverts commit 36f389604294dfc953e6f5624ceb683818d32f28. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e88973373a
commit
4e65431c85
@ -214,6 +214,11 @@ int bch2_fs_recovery(struct bch_fs *c)
|
||||
|
||||
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:");
|
||||
err = "error in recovery";
|
||||
ret = bch2_initial_gc(c, &journal);
|
||||
@ -274,11 +279,6 @@ int bch2_fs_recovery(struct bch_fs *c)
|
||||
bch_verbose(c, "quotas done");
|
||||
}
|
||||
|
||||
err = "cannot allocate memory";
|
||||
ret = bch2_fs_ec_start(c);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
out:
|
||||
bch2_journal_entries_free(&journal);
|
||||
kfree(clean);
|
||||
|
Loading…
x
Reference in New Issue
Block a user