summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_radix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_radix.c b/sys/vm/vm_radix.c
index 1e31380..e172c86 100644
--- a/sys/vm/vm_radix.c
+++ b/sys/vm/vm_radix.c
@@ -442,7 +442,7 @@ vm_radix_insert(struct vm_radix *rtree, vm_pindex_t index, vm_page_t page)
* Setup the new intermediate node and add the 2 children: the
* new object and the older edge.
*/
- tmp2 = vm_radix_node_get(vm_radix_trimkey(page->pindex, clev - 1), 2,
+ tmp2 = vm_radix_node_get(vm_radix_trimkey(index, clev - 1), 2,
clev);
rnode->rn_child[slot] = tmp2;
vm_radix_addpage(tmp2, index, clev, page);
OpenPOWER on IntegriCloud