diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-06-16 11:18:32 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-06-16 11:18:32 +0100 |
commit | f84ee327e5b8311dfa73f059453ef80a5e8a2af2 (patch) | |
tree | 4486cf66719afe70bb74b5b1a529360a4369674b /xen/common/tmem_xen.c | |
parent | 78c4e40239a539a8df9529eaa7409abe464ab8f3 (diff) | |
download | xen-f84ee327e5b8311dfa73f059453ef80a5e8a2af2.tar.gz xen-f84ee327e5b8311dfa73f059453ef80a5e8a2af2.tar.bz2 xen-f84ee327e5b8311dfa73f059453ef80a5e8a2af2.zip |
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>
Diffstat (limited to 'xen/common/tmem_xen.c')
-rw-r--r-- | xen/common/tmem_xen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c index 6a0b14f456..774bb7dc12 100644 --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -202,6 +202,7 @@ EXPORT void tmh_release_avail_pages_to_host(void) { scrub_list_splice(&tmh_page_list); INIT_PAGE_LIST_HEAD(&tmh_page_list); + tmh_page_list_pages = 0; } spin_unlock(&tmh_page_list_lock); } |