summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/btree_iter.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-28 03:26:07 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:55 +0200
commit0f2ea6550f1fbfabbe2db276107246c1236018ab (patch)
treea0f302853c63442dd7e0c3a31c5567e0b15a50e5 /fs/bcachefs/btree_iter.h
parentbcachefs: ec: zero_out_rest_of_ec_bucket() (diff)
downloadlinux-0f2ea6550f1fbfabbe2db276107246c1236018ab.tar.xz
linux-0f2ea6550f1fbfabbe2db276107246c1236018ab.zip
bcachefs: bch2_btree_iter_peek_and_restart_outlined()
Needed for interfacing with Rust - bindgen can't handle inline functions, alas. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_iter.h')
-rw-r--r--fs/bcachefs/btree_iter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h
index 50b39704c56f..8e1f754e641b 100644
--- a/fs/bcachefs/btree_iter.h
+++ b/fs/bcachefs/btree_iter.h
@@ -595,6 +595,8 @@ static inline int btree_trans_too_many_iters(struct btree_trans *trans)
return 0;
}
+struct bkey_s_c bch2_btree_iter_peek_and_restart_outlined(struct btree_iter *);
+
static inline struct bkey_s_c
__bch2_btree_iter_peek_and_restart(struct btree_trans *trans,
struct btree_iter *iter, unsigned flags)