[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEN] Only print progress dots when scrubbing actual memory.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1166452718 0
# Node ID 8752418b58d8b007b4937471b024ca3f3a3618ea
# Parent  469478194aef6e987f9281efbc0756749be6eb80
[XEN] Only print progress dots when scrubbing actual memory.
Signed-off-by: Jes Sorensen <jes@xxxxxxx>
---
 xen/common/page_alloc.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff -r 469478194aef -r 8752418b58d8 xen/common/page_alloc.c
--- a/xen/common/page_alloc.c   Mon Dec 18 00:14:40 2006 +0000
+++ b/xen/common/page_alloc.c   Mon Dec 18 14:38:38 2006 +0000
@@ -490,15 +490,15 @@ void scrub_heap_pages(void)
 
     for ( mfn = first_valid_mfn; mfn < max_page; mfn++ )
     {
+        process_pending_timers();
+
+        /* Quick lock-free check. */
+        if ( allocated_in_map(mfn) )
+            continue;
+
         /* Every 100MB, print a progress dot. */
         if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 )
             printk(".");
-
-        process_pending_timers();
-
-        /* Quick lock-free check. */
-        if ( allocated_in_map(mfn) )
-            continue;
 
         spin_lock_irq(&heap_lock);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.