aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/grant_table.c
diff options
context:
space:
mode:
authorDan Magenheimer <dan.magenheimer@oracle.com>2012-12-10 11:15:53 +0000
committerDan Magenheimer <dan.magenheimer@oracle.com>2012-12-10 11:15:53 +0000
commit1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5 (patch)
treeee94213bc075524ee82cb8873c88d8bca0716977 /xen/common/grant_table.c
parente93e0d9d73ce77bd1f3471af68a194b47e0e8c45 (diff)
downloadxen-1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5.tar.gz
xen-1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5.tar.bz2
xen-1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5.zip
xen: centralize accounting for domain tot_pages
Provide and use a common function for all adjustments to a domain's tot_pages counter in anticipation of future and/or out-of-tree patches that must adjust related counters atomically. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/grant_table.c')
-rw-r--r--xen/common/grant_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
index e5064f40df..ce66d7598f 100644
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -1667,7 +1667,7 @@ gnttab_transfer(
}
/* Okay, add the page to 'e'. */
- if ( unlikely(e->tot_pages++ == 0) )
+ if ( unlikely(domain_adjust_tot_pages(e, 1) == 1) )
get_knownalive_domain(e);
page_list_add_tail(page, &e->page_list);
page_set_owner(page, e);