projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e889733
)
Revert "bcachefs: start erasure coding after journal replay"
author
Kent Overstreet
<kent.overstreet@gmail.com>
Fri, 23 Nov 2018 07:50:33 +0000
(
02:50
-0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:12 +0000
(17:08 -0400)
This reverts commit
36f389604294dfc953e6f5624ceb683818d32f28
.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/recovery.c
b/fs/bcachefs/recovery.c
index f00e327d4d35f3655d4ab8e2c65503c266ed131a..ddfba16a29985f11effb5ab2a47ef6b13710dbbd 100644
(file)
--- a/
fs/bcachefs/recovery.c
+++ b/
fs/bcachefs/recovery.c
@@
-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);