summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/btree_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bcache/btree_io.c')
-rw-r--r--drivers/md/bcache/btree_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree_io.c b/drivers/md/bcache/btree_io.c
index 052364a042cd..a458fc537ae5 100644
--- a/drivers/md/bcache/btree_io.c
+++ b/drivers/md/bcache/btree_io.c
@@ -144,7 +144,7 @@ void bch_btree_init_next(struct cache_set *c, struct btree *b,
{
bool did_sort;
- BUG_ON(iter && iter->l[b->level].node != b);
+ BUG_ON(iter && !btree_iter_has_node(iter_s(iter), b));
did_sort = btree_node_compact(c, b, iter);