projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a912a9
)
bcachefs: Fix "btree node in stripe" error
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 6 Mar 2023 05:10:14 +0000
(
00:10
-0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:56 +0000
(17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/ec.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/ec.c
b/fs/bcachefs/ec.c
index f131a70f282fc63db6a0f4e6713e10c13f6fb810..e9470c06b1fa84c1abbdec67c01d449ac335a250 100644
(file)
--- a/
fs/bcachefs/ec.c
+++ b/
fs/bcachefs/ec.c
@@
-915,6
+915,9
@@
static int ec_stripe_update_extent(struct btree_trans *trans,
b = bch2_backpointer_get_node(trans, &node_iter, bucket, *bp_offset, bp);
bch2_trans_iter_exit(trans, &node_iter);
+ if (!b)
+ return 0;
+
prt_printf(&buf, "found btree node in erasure coded bucket: b=%px\n", b);
bch2_backpointer_to_text(&buf, &bp);