mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
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
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue