mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
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 <kent.overstreet@linux.dev>
This commit is contained in:
parent
6447544c3d
commit
9a1accd3a5
|
|
@ -1093,10 +1093,6 @@ int bch2_fs_recovery(struct bch_fs *c)
|
|||
out:
|
||||
bch2_flush_fsck_errs(c);
|
||||
|
||||
if (!c->opts.retain_recovery_info) {
|
||||
bch2_journal_keys_put_initial(c);
|
||||
bch2_find_btree_nodes_exit(&c->found_btree_nodes);
|
||||
}
|
||||
if (!IS_ERR(clean))
|
||||
kfree(clean);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user