summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2013-03-17 16:06:03 +0000
committeralc <alc@FreeBSD.org>2013-03-17 16:06:03 +0000
commitb346e448af4fd8a3d9a582e850a73123d59e467f (patch)
tree858e7bfe2f55f71153cb9b03fcf3d6caa40b68f6 /sys/amd64
parenta2e67affe3d12d77ed0950538f3fd7bf0963454c (diff)
downloadFreeBSD-src-b346e448af4fd8a3d9a582e850a73123d59e467f.zip
FreeBSD-src-b346e448af4fd8a3d9a582e850a73123d59e467f.tar.gz
Simplify the interface to vm_radix_insert() by eliminating the parameter
"index". The content of a radix tree leaf, or at least its "key", is not opaque to the other radix tree operations. Specifically, they know how to extract the "key" from a leaf. So, eliminating the parameter "index" isn't breaking the abstraction. Moreover, eliminating the parameter "index" effectively prevents the caller from passing an inconsistent "index" and leaf to vm_radix_insert(). Reviewed by: attilio Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 4a1ee86..324fc69 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1533,7 +1533,7 @@ pmap_insert_pt_page(pmap_t pmap, vm_page_t mpte)
{
PMAP_LOCK_ASSERT(pmap, MA_OWNED);
- vm_radix_insert(&pmap->pm_root, mpte->pindex, mpte);
+ vm_radix_insert(&pmap->pm_root, mpte);
}
/*
OpenPOWER on IntegriCloud