diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-29 20:06:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-31 22:03:17 -0400 |
commit | 9a1accd3a57d4bfb6daeee2262b1b24b57ec2382 (patch) | |
tree | e0f41965254b58fdb5fd4435a8e83830b7c070c1 /fs | |
parent | 6447544c3d1473c9d8945e2cc0f3c71eba4c354b (diff) | |
download | linux-9a1accd3a57d4bfb6daeee2262b1b24b57ec2382.tar.gz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/recovery.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 4fca5757556574..4b51105bdb2e15 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1093,10 +1093,6 @@ use_clean: 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); |