mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 01:59:54 -04:00
bcachefs: fix typo when picking read method
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
cd575ddf57
commit
283cca30a8
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user