Commit 283cca30 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix typo when picking read method

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent cd575ddf
......@@ -637,11 +637,11 @@ static int extent_pick_read_device(struct bch_fs *c,
!bch2_dev_is_readable(ca))
p.idx++;
if (!p.idx && p.ec_nr)
if (force_reconstruct_read(c) &&
!p.idx && p.ec_nr)
p.idx++;
if (force_reconstruct_read(c) &&
p.idx >= p.ec_nr + 1)
if (p.idx >= p.ec_nr + 1)
continue;
if (ret && !ptr_better(c, p, *pick))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment