From 5a655f06c94f541fa9223a9b7ef2ab8a909f1fea Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 28 Mar 2020 18:26:01 -0400 Subject: [PATCH] bcachefs: Read journal when keep_journal on Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- fs/bcachefs/recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 0c8444b5278f9..c0e6cfa36c89a 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -820,7 +820,7 @@ int bch2_fs_recovery(struct bch_fs *c) set_bit(BCH_FS_REBUILD_REPLICAS, &c->flags); } - if (!c->sb.clean || c->opts.fsck) { + if (!c->sb.clean || c->opts.fsck || c->opts.keep_journal) { struct jset *j; ret = bch2_journal_read(c, &c->journal_entries); -- 2.30.2