From 92d34f6ed29e90d48c40a4c31816df805edfe483 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 16 Dec 2019 14:42:09 -0500 Subject: Update bcachefs sources to fbb669e9de bcachefs: Kill btree_node_iter_large --- libbcachefs/bkey_on_stack.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbcachefs/bkey_on_stack.h') diff --git a/libbcachefs/bkey_on_stack.h b/libbcachefs/bkey_on_stack.h index d4739038..f607a0cb 100644 --- a/libbcachefs/bkey_on_stack.h +++ b/libbcachefs/bkey_on_stack.h @@ -19,6 +19,14 @@ static inline void bkey_on_stack_realloc(struct bkey_on_stack *s, } } +static inline void bkey_on_stack_reassemble(struct bkey_on_stack *s, + struct bch_fs *c, + struct bkey_s_c k) +{ + bkey_on_stack_realloc(s, c, k.k->u64s); + bkey_reassemble(s->k, k); +} + static inline void bkey_on_stack_init(struct bkey_on_stack *s) { s->k = (void *) s->onstack; -- cgit v1.2.3