Page MenuHomeFreeBSD

D47207.id145192.diff
No OneTemporary

D47207.id145192.diff

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

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)

Event Timeline