From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 02/18] xenpaging: call pageout policy function in xenpaging_evict_page Date: Fri, 15 Oct 2010 16:12:04 +0200 Message-ID: <20101015141202.988652777@aepfle.de> References: <20101015141202.309585877@aepfle.de> Return-path: Content-Disposition: inline; filename=xenpaging.pageout_policy.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 Already-Acked-by: Patrick Colp --- tools/xenpaging/xenpaging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- xen-4.0.1-testing.orig/tools/xenpaging/xenpaging.c +++ xen-4.0.1-testing/tools/xenpaging/xenpaging.c @@ -358,8 +358,8 @@ int xenpaging_evict_page(xenpaging_t *pa 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;