bcachefs: Fix extent_to_replicas()
This needs to match bch2_mark_extent()/bch2_trans_mark_extent() in buckets.c Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e7808eef95
commit
b2ca9903cd
@ -84,10 +84,10 @@ static void extent_to_replicas(struct bkey_s_c k,
|
||||
if (p.ptr.cached)
|
||||
continue;
|
||||
|
||||
if (p.has_ec)
|
||||
if (!p.has_ec)
|
||||
r->devs[r->nr_devs++] = p.ptr.dev;
|
||||
else
|
||||
r->nr_required = 0;
|
||||
|
||||
r->devs[r->nr_devs++] = p.ptr.dev;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user