summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_radix.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-03-13 00:41:37 +0000
committerattilio <attilio@FreeBSD.org>2013-03-13 00:41:37 +0000
commitba43ac477bb43171e38fda085dc7d13a2334115d (patch)
tree957635e704aaafe1db76924762ef2939b8b14781 /sys/vm/vm_radix.c
parent3c52979cb43d5007efafd3b60accb74eb6c742ee (diff)
downloadFreeBSD-src-ba43ac477bb43171e38fda085dc7d13a2334115d.zip
FreeBSD-src-ba43ac477bb43171e38fda085dc7d13a2334115d.tar.gz
For uniformity, use the user provided index.
Sponsored by: EMC / Isilon storage division Reviewed and reported by: alc
Diffstat (limited to 'sys/vm/vm_radix.c')
-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