mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
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:
parent
0766f5599c
commit
ec70103f9b
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user