diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index f9e108bdfc45642cdbf58b70913818405dc050b0..68867b2e4620cd6a918d8fa55de94be810ba09a7 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -1394,7 +1394,7 @@ static int scrub_setup_recheck_block(struct scrub_ctx *sctx, struct scrub_page *page; if (mirror_index >= BTRFS_MAX_MIRRORS) - continue; + break; sblock = sblocks_for_recheck + mirror_index; sblock->sctx = sctx;