diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-03-28 18:26:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-03-30 12:51:03 -0400 |
commit | 123dd9f6b950885e4de822b06b851927245c4e1e (patch) | |
tree | 2645c7b971671d94b5279ca7adac465da2a3edef | |
parent | 8d0476242e1f6e605baa643ec26c37fb42d13456 (diff) |
bcachefs: Read journal when keep_journal on
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 5f27b8402d71..8cfae639e23f 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); |