Skip to content

Commit 9a1accd

Browse files
author
Kent Overstreet
committed
bcachefs: Journal keys are retained until shutdown, or journal replay finishes
If we don't finish journal replay we need to keep journal keys around until the filesystem shuts down - otherwise e.g. -o norecovery, various tools (dump, list) break, and eventually we'll be doing journal replay in the background. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 6447544 commit 9a1accd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/bcachefs/recovery.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,10 +1093,6 @@ int bch2_fs_recovery(struct bch_fs *c)
10931093
out:
10941094
bch2_flush_fsck_errs(c);
10951095

1096-
if (!c->opts.retain_recovery_info) {
1097-
bch2_journal_keys_put_initial(c);
1098-
bch2_find_btree_nodes_exit(&c->found_btree_nodes);
1099-
}
11001096
if (!IS_ERR(clean))
11011097
kfree(clean);
11021098

0 commit comments

Comments
 (0)