34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From fdfafffb03e233615fbe7ba3fab3d7b0bbe78bd9 Mon Sep 17 00:00:00 2001
|
|
From: Kent Overstreet <kent.overstreet@linux.dev>
|
|
Date: Wed, 4 Dec 2024 01:19:28 -0500
|
|
Subject: [PATCH 163/233] bcachefs: Advance to next bp on
|
|
BCH_ERR_backpointer_to_overwritten_btree_node
|
|
Content-Type: text/plain; charset="utf-8"
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Don't spin.
|
|
|
|
Fixes: de95cc201a97 ("bcachefs: Kill bch2_get_next_backpointer()")
|
|
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
|
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
|
|
---
|
|
fs/bcachefs/move.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
|
|
index 460175464762..6f21e36d89f7 100644
|
|
--- a/fs/bcachefs/move.c
|
|
+++ b/fs/bcachefs/move.c
|
|
@@ -785,7 +785,7 @@ int bch2_evacuate_bucket(struct moving_context *ctxt,
|
|
b = bch2_backpointer_get_node(trans, bp, &iter);
|
|
ret = PTR_ERR_OR_ZERO(b);
|
|
if (ret == -BCH_ERR_backpointer_to_overwritten_btree_node)
|
|
- continue;
|
|
+ goto next;
|
|
if (bch2_err_matches(ret, BCH_ERR_transaction_restart))
|
|
continue;
|
|
if (ret)
|
|
--
|
|
2.45.2
|
|
|