From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] xenpaging: call pageout policy function in xenpaging_evict_page Date: Tue, 24 Aug 2010 11:38:25 +0200 Message-ID: <20100824093825.GA31663@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Patrick Colp , 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 --- xen-unstable.hg-4.1.21976.orig/tools/xenpaging/xenpaging.c +++ xen-unstable.hg-4.1.21976/tools/xenpaging/xenpaging.c @@ -361,8 +361,8 @@ int xenpaging_evict_page(xc_interface *x 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;