Commit 729608a6 authored by Christopher James Halse Rogers's avatar Christopher James Halse Rogers Committed by Kent Overstreet

bcachefs: Fix unused variable warning when !BCACHEFS_DEBUG

Signed-off-by: default avatarChristopher James Halse Rogers <raof@ubuntu.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 077ed08e
......@@ -1549,7 +1549,9 @@ struct btree *bch2_btree_iter_next_node(struct btree_iter *iter)
static void btree_iter_set_search_pos(struct btree_iter *iter, struct bpos new_pos)
{
#ifdef CONFIG_BCACHEFS_DEBUG
struct bpos old_pos = iter->real_pos;
#endif
int cmp = bpos_cmp(new_pos, iter->real_pos);
unsigned l = iter->level;
......
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