Commit 9ef6068c authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Fix bch2_extent_ptr_durability()

We were looking up the wrong entry in the stripes radix tree.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 332c6e53
......@@ -79,7 +79,7 @@ static unsigned bch2_extent_ptr_durability(struct bch_fs *c,
for (i = 0; i < p.ec_nr; i++) {
struct stripe *s =
genradix_ptr(&c->stripes[0], p.idx);
genradix_ptr(&c->stripes[0], p.ec[i].idx);
if (WARN_ON(!s))
continue;
......
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