Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147980651
D47207.1784998680.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47207.1784998680.diff
View Options
diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c
--- a/sys/kern/subr_pctrie.c
+++ b/sys/kern/subr_pctrie.c
@@ -801,9 +801,7 @@
* If no such node was found, and instead this path leads only to nodes
* < index, back up to find a subtrie with the least value > index.
*/
- if (pctrie_isleaf(node) ?
- (m = pctrie_toval(node)) == NULL || *m < index :
- node->pn_owner < index) {
+ if (node == PCTRIE_NULL || *pctrie_toval(node) < index) {
/* Climb the path to find a node with a descendant > index. */
while (it->top != 0) {
node = it->path[it->top - 1];
@@ -960,9 +958,7 @@
* If no such node was found, and instead this path leads only to nodes
* > index, back up to find a subtrie with the greatest value < index.
*/
- if (pctrie_isleaf(node) ?
- (m = pctrie_toval(node)) == NULL || *m > index :
- node->pn_owner > index) {
+ if (node == PCTRIE_NULL || *pctrie_toval(node) > index) {
/* Climb the path to find a node with a descendant < index. */
while (it->top != 0) {
node = it->path[it->top - 1];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 25, 4:58 PM (4 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29257751
Default Alt Text
D47207.1784998680.diff (1 KB)
Attached To
Mode
D47207: subr_pctrie: improve iter nbr search
Attached
Detach File
Event Timeline
Log In to Comment