bcachefs: eytzinger[01]_test improvement

In eytzinger[01]_test(), make sure that eytzinger[01]_for_each()
iterates over all array elements.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Andreas Gruenbacher 2025-01-26 11:28:59 +01:00 committed by Kent Overstreet
parent 0766f5599c
commit ec70103f9b

View File

@ -734,6 +734,7 @@ void eytzinger1_test(void)
inorder++;
}
BUG_ON(inorder - 1 != size);
}
}
@ -767,6 +768,7 @@ void eytzinger0_test(void)
inorder++;
}
BUG_ON(inorder != size);
}
}