aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/page_alloc.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-09-22 08:26:16 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-09-22 08:26:16 +0100
commit84d568f5c9ceb342be7c883074ac8c5423ab1492 (patch)
tree115cf3d4c07b9639192c005e5ef7e129f47c1e4b /xen/common/page_alloc.c
parent78e09264ad9836fa47610399e4a5b4d3cd62caf5 (diff)
downloadxen-84d568f5c9ceb342be7c883074ac8c5423ab1492.tar.gz
xen-84d568f5c9ceb342be7c883074ac8c5423ab1492.tar.bz2
xen-84d568f5c9ceb342be7c883074ac8c5423ab1492.zip
Introduce new flavour of map_domain_page()
Introduce a variant of map_domain_page() directly getting passed a struct page_info * argument, based on the observation that in many places the argument to this function so far simply was the result of page_to_mfn(). This is meaningful for the x86-64 case where map_domain_page() really just is an invocation of mfn_to_virt(), and hence the combined mfn_to_virt(page_to_mfn()) now represents a needless round trip conversion compressed -> uncompressed -> compressed of the MFN representation. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/page_alloc.c')
-rw-r--r--xen/common/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c
index 395732dee5..44813ebf1c 100644
--- a/xen/common/page_alloc.c
+++ b/xen/common/page_alloc.c
@@ -1235,7 +1235,7 @@ __initcall(pagealloc_keyhandler_init);
void scrub_one_page(struct page_info *pg)
{
- void *p = map_domain_page(page_to_mfn(pg));
+ void *p = __map_domain_page(pg);
#ifndef NDEBUG
/* Avoid callers relying on allocations returning zeroed pages. */