mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
78c4e40239
commit
f84ee327e5
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||