bitkeeper revision 1.1159.223.81 (42091872lrObHIRNczDaqDeQw3NmyA)

debug memory audit cleanups + comment fix from Jon Mason.
Signed-off-by: ian.pratt@cl.cam.ac.uk
This commit is contained in:
iap10@freefall.cl.cam.ac.uk committed 2005-02-08 19:52:18 +00:00
1 parent 055935cf6d
commit faf69408ee
3 files changed
+12 -8

No files matched your search

@@ -1,11 +1,11 @@
/******************************************************************************
* arch/xen/drivers/netif/backend/main.c
* drivers/xen/netback/netback.c
*
* Back-end of the driver for virtual block devices. This portion of the
* driver exports a 'unified' block-device interface that can be accessed
* Back-end of the driver for virtual network devices. This portion of the
* driver exports a 'unified' network-device interface that can be accessed
* by any operating system that implements a compatible front end. A
* reference front-end implementation can be found in:
* arch/xen/drivers/netif/frontend
* drivers/xen/netfront/netfront.c
*
* Copyright (c) 2002-2004, K A Fraser
*/
+3
View File
@@ -578,8 +578,11 @@ void domain_relinquish_memory(struct domain *d)
/* Drop the in-use reference to the page-table base. */
if ( pagetable_val(d->mm.pagetable) != 0 )
{
put_page_and_type(&frame_table[pagetable_val(d->mm.pagetable) >>
PAGE_SHIFT]);
d->mm.pagetable = mk_pagetable(0);
}
/*
* Relinquish GDT mappings. No need for explicit unmapping of the LDT as
+5 -4
View File
@@ -2098,8 +2098,8 @@ void audit_domain(struct domain *d)
/* PHASE 1 */
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], -1, 1);
if( pagetable_val(d->mm.pagetable) )
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], -1, 1);
list_ent = d->page_list.next;
for ( i = 0; (list_ent != &d->page_list); i++ )
@@ -2352,9 +2352,10 @@ void audit_domain(struct domain *d)
spin_unlock(&d->page_alloc_lock);
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], 1, 1);
if( pagetable_val(d->mm.pagetable) )
adjust(&frame_table[pagetable_val(d->mm.pagetable)>>PAGE_SHIFT], 1, 1);
printk("Audit %d: Done. ctot=%d ttot=%d\n", d->id, ctot, ttot );
printk("Audit %d: Done. pages=%d ctot=%d ttot=%d\n", i, d->id, ctot, ttot );
if ( d != current )
domain_unpause(d);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.