ia64/xen-unstable

changeset 19749:f649dd4454af

tmem: fix minor accounting error

Reset a counter when all tmem pages are released. This
only affects status reporting (as displayed by xm tmem-list
or the just patched xenballoon-monitor) but the incorrectly
reported result is misleading.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 11:18:32 2009 +0100 (2009-06-16)
parents 8373971089a7
children f07a915ecc17
files xen/common/tmem_xen.c
line diff
     1.1 --- a/xen/common/tmem_xen.c	Tue Jun 16 11:17:28 2009 +0100
     1.2 +++ b/xen/common/tmem_xen.c	Tue Jun 16 11:18:32 2009 +0100
     1.3 @@ -202,6 +202,7 @@ EXPORT void tmh_release_avail_pages_to_h
     1.4      {
     1.5          scrub_list_splice(&tmh_page_list);
     1.6          INIT_PAGE_LIST_HEAD(&tmh_page_list);
     1.7 +        tmh_page_list_pages = 0;
     1.8      }
     1.9      spin_unlock(&tmh_page_list_lock);
    1.10  }