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>
This commit is contained in:
Keir Fraser committed 2009-06-16 11:18:32 +01:00
1 parent 78c4e40239
commit f84ee327e5
1 file changed
+1
+1
View File
@@ -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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.