mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 07:51:16 -04:00
bcachefs: Fix bch2_extent_ptr_durability()
We were looking up the wrong entry in the stripes radix tree. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
332c6e5370
commit
9ef6068c4d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user