summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/ec.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-06 00:10:14 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:56 -0400
commit26bab33b6974d42f5db6d2b7c2198e3af4993cf8 (patch)
tree50ad8a0d84285de724639ebd5b85f48902ca8ea2 /fs/bcachefs/ec.c
parent2a912a9a39bf0ce7709d53f00d1d341d2478c96e (diff)
downloadlinux-stable-26bab33b6974d42f5db6d2b7c2198e3af4993cf8.tar.gz
linux-stable-26bab33b6974d42f5db6d2b7c2198e3af4993cf8.tar.bz2
linux-stable-26bab33b6974d42f5db6d2b7c2198e3af4993cf8.zip
bcachefs: Fix "btree node in stripe" error
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec.c')
-rw-r--r--fs/bcachefs/ec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c
index f131a70f282f..e9470c06b1fa 100644
--- 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);