From: Olaf Hering Date: Tue, 24 Aug 2010 17:33:25 +0000 (+0100) Subject: tools/xenpaging: call pageout policy function in xenpaging_evict_page X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11573 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4fc7d71bc2c486c1816dd13e3b264d0500c3ead5;p=xen.git tools/xenpaging: call pageout policy function in xenpaging_evict_page 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 Acked-by: Patrick Colp Signed-off-by: Ian Jackson --- diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c index e6ed4a6f9f..b3b579ef96 100644 --- a/tools/xenpaging/xenpaging.c +++ b/tools/xenpaging/xenpaging.c @@ -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;