]> xenbits.xensource.com Git - xen.git/commitdiff
tools/xenpaging: call pageout policy function in xenpaging_evict_page
authorOlaf Hering <olaf@aepfle.de>
Tue, 24 Aug 2010 17:33:25 +0000 (18:33 +0100)
committerOlaf Hering <olaf@aepfle.de>
Tue, 24 Aug 2010 17:33:25 +0000 (18:33 +0100)
Notify policy about a page that was just paged out to disk.
Up to now the code called the opposite function, which clears the
(xenpaging internal) reference bit, instead of setting it and marking
the page as gone.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Patrick Colp <pjcolp@cs.ubc.ca>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenpaging/xenpaging.c

index e6ed4a6f9f15dffd968e4ebba47d6476abd4f90f..b3b579ef9662860db48a53f95690acffbc002033 100644 (file)
@@ -363,8 +363,8 @@ int xenpaging_evict_page(xc_interface *xch, xenpaging_t *paging,
         goto out;
     }
 
-    /* Notify policy of page being paged in */
-    policy_notify_paged_in(paging->mem_event.domain_id, victim->gfn);
+    /* Notify policy of page being paged out */
+    policy_notify_paged_out(paging->mem_event.domain_id, victim->gfn);
 
  out:
     return ret;