Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159761910
D47207.id145192.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47207.id145192.diff
View Options
Index: sys/kern/subr_pctrie.c
===================================================================
--- sys/kern/subr_pctrie.c
+++ 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 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];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 18, 11:09 PM (8 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34061491
Default Alt Text
D47207.id145192.diff (1 KB)
Attached To
Mode
D47207: subr_pctrie: improve iter nbr search
Attached
Detach File
Event Timeline
Log In to Comment