Commit e094becc authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Kill bch2_keylist_add_in_order()

Dead code, so delete
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e151580d
...@@ -31,22 +31,6 @@ int bch2_keylist_realloc(struct keylist *l, u64 *inline_u64s, ...@@ -31,22 +31,6 @@ int bch2_keylist_realloc(struct keylist *l, u64 *inline_u64s,
return 0; 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) void bch2_keylist_pop_front(struct keylist *l)
{ {
l->top_p -= bch2_keylist_front(l)->k.u64s; l->top_p -= bch2_keylist_front(l)->k.u64s;
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#include "keylist_types.h" #include "keylist_types.h"
int bch2_keylist_realloc(struct keylist *, u64 *, size_t, size_t); 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 *); void bch2_keylist_pop_front(struct keylist *);
static inline void bch2_keylist_init(struct keylist *l, u64 *inline_keys) static inline void bch2_keylist_init(struct keylist *l, u64 *inline_keys)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment