x86/mm: Eliminate _shadow_mode_refcounts
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 3 May 2012 16:21:09 +0000 (17:21 +0100)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 3 May 2012 16:21:09 +0000 (17:21 +0100)
Replace its only useer with paging_mode_refcounts().

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm.c
xen/arch/x86/mm/shadow/common.c
xen/include/asm-x86/mm.h

index 6d81f98d8349603279140a02625adba4826b6cf6..f10a1c572bafdc8698fc388011ea19cf25564538 100644 (file)
@@ -2165,7 +2165,7 @@ int get_page(struct page_info *page, struct domain *domain)
     if ( owner != NULL )
         put_page(page);
 
-    if ( !_shadow_mode_refcounts(domain) && !domain->is_dying )
+    if ( !paging_mode_refcounts(domain) && !domain->is_dying )
         gdprintk(XENLOG_INFO,
                  "Error pfn %lx: rd=%p, od=%p, caf=%08lx, taf=%"
                  PRtype_info "\n",
index cda1c56201c0a42552eb1f633d648929b76b3b01..59be993ec0cc0947b9cc06a2b7779d0c20332697 100644 (file)
@@ -105,11 +105,6 @@ static int __init shadow_audit_key_init(void)
 __initcall(shadow_audit_key_init);
 #endif /* SHADOW_AUDIT */
 
-int _shadow_mode_refcounts(struct domain *d)
-{
-    return shadow_mode_refcounts(d);
-}
-
 
 /**************************************************************************/
 /* x86 emulator support for the shadow code
index bc3e4dc01d9d6a6987deca9c195553ce83351f30..4f8ac4c2ff804092e12c163a007ab138559d93fd 100644 (file)
@@ -331,7 +331,6 @@ static inline void *__page_to_virt(const struct page_info *pg)
 
 int free_page_type(struct page_info *page, unsigned long type,
                    int preemptible);
-int _shadow_mode_refcounts(struct domain *d);
 
 int is_iomem_page(unsigned long mfn);