projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332c6e5
)
bcachefs: Fix bch2_extent_ptr_durability()
author
Kent Overstreet
<kent.overstreet@gmail.com>
Mon, 7 Oct 2019 20:22:35 +0000
(16:22 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:29 +0000
(17:08 -0400)
We were looking up the wrong entry in the stripes radix tree.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/extents.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/extents.c
b/fs/bcachefs/extents.c
index 41a2b36f1d2f7ff773889d4d6a22df456d3dd68c..a8c2081cdd250e5cac0a6fe6aa40ae8ef55af95b 100644
(file)
--- a/
fs/bcachefs/extents.c
+++ b/
fs/bcachefs/extents.c
@@
-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;