projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0766f55
)
bcachefs: eytzinger[01]_test improvement
author
Andreas Gruenbacher
<agruenba@redhat.com>
Sun, 26 Jan 2025 10:28:59 +0000
(11:28 +0100)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:13 +0000
(21:02 -0400)
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>
fs/bcachefs/util.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/util.c
b/fs/bcachefs/util.c
index 3a69e3409e894b140c054963b68340e3b6e9bbe6..2af77c410179c9a66caee28c9c29acff8517dc07 100644
(file)
--- a/
fs/bcachefs/util.c
+++ b/
fs/bcachefs/util.c
@@
-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);
}
}