diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-26 21:36:39 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-27 21:36:36 -0500 |
commit | 30cca2e94d0dfa8c3151daf1393f402d32bb9407 (patch) | |
tree | cbf1b7ccfdcaace597389147c27031c0e8106f12 /libbcachefs/keylist.c | |
parent | bf359ac1ad97929e1023632aafb272d655504516 (diff) |
Update bcachefs sources to ca97ee3577 bcachefs: bch2_btree_iter_peek_and_restart_outlined()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/keylist.c')
-rw-r--r-- | libbcachefs/keylist.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libbcachefs/keylist.c b/libbcachefs/keylist.c index 29e51bde..cf5998e5 100644 --- a/libbcachefs/keylist.c +++ b/libbcachefs/keylist.c @@ -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; |