bcachefs: Kill bch2_keylist_add_in_order()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 22 Feb 2023 05:56:41 +0000 (00:56 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:54 +0000 (17:09 -0400)
Dead code, so delete

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/keylist.c
fs/bcachefs/keylist.h

index 29e51bde8313419cd44dcc83d4b339d84abd6935..cf5998e519e722e9f9c580717a7095ee64aad1e1 100644 (file)
@@ -31,22 +31,6 @@ int bch2_keylist_realloc(struct keylist *l, u64 *inline_u64s,
        return 0;
 }
 
-void bch2_keylist_add_in_order(struct keylist *l, struct bkey_i *insert)
-{
-       struct bkey_i *where;
-
-       for_each_keylist_key(l, where)
-               if (bpos_lt(insert->k.p, where->k.p))
-                       break;
-
-       memmove_u64s_up((u64 *) where + insert->k.u64s,
-                       where,
-                       ((u64 *) l->top) - ((u64 *) where));
-
-       l->top_p += insert->k.u64s;
-       bkey_copy(where, insert);
-}
-
 void bch2_keylist_pop_front(struct keylist *l)
 {
        l->top_p -= bch2_keylist_front(l)->k.u64s;
index 635efb7e8228b96fae848a917214590306ae1538..fe759c7031e0403a0fe0da6d61b2c8432f819451 100644 (file)
@@ -5,7 +5,6 @@
 #include "keylist_types.h"
 
 int bch2_keylist_realloc(struct keylist *, u64 *, size_t, size_t);
-void bch2_keylist_add_in_order(struct keylist *, struct bkey_i *);
 void bch2_keylist_pop_front(struct keylist *);
 
 static inline void bch2_keylist_init(struct keylist *l, u64 *inline_keys)