Skip to contentSkip to conversation

bcachefs: Remove dead code in __build_ro_aux_tree

PATCH New Alan Huang 1 participant 1 message Aug 10, 2024

lore
Share & tools
lore

Alan Huang

author
#0 lore raw

PATCH 1/1 bcachefs: Remove dead code in __build_ro_aux_tree

This logic is no longer useful since commit 3ce8b463e3e0 ("bcachefs: kill bset_tree->max_key"), so remove it.

---
 fs/bcachefs/bset.c | 3 ---
 1 file changed, 3 deletions(-)
fs/bcachefs/bset.c +0 -3
index 575e1d0b6eeb..b95deeb83071 100644
@@ -754,9 +754,6 @@ static noinline void __build_ro_aux_tree(struct btree *b, struct bset_tree *t)
 		EBUG_ON(tree_to_bkey(b, t, j) != k);
 	}
 
-	while (k != btree_bkey_last(b, t))
-		prev = k, k = bkey_p_next(k);
-
 	if (!bkey_pack_pos(bkey_to_packed(&min_key), b->data->min_key, b)) {
 		bkey_init(&min_key.k);
 		min_key.k.p = b->data->min_key;
Signature · 1 line
2.45.2