From: Kent Overstreet Date: Sun, 31 Mar 2024 02:42:29 +0000 (-0400) Subject: bcachefs: Don't read journal just for fsck X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4dcd90b6d1b76b87722059db0f368aa48e7703da;p=linux.git bcachefs: Don't read journal just for fsck reading the journal can take a decent amount of time compared to the rest of fsck, let's only read it when required. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 08c0422a722dc..9cf262f1a3cd1 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -658,7 +658,7 @@ int bch2_fs_recovery(struct bch_fs *c) goto err; } - if (!c->sb.clean || c->opts.fsck || c->opts.retain_recovery_info) { + if (!c->sb.clean || c->opts.retain_recovery_info) { struct genradix_iter iter; struct journal_replay **i;