xen/balloon: Clarify credit calculation
authorDaniel Kiper <dkiper@net-space.pl>
Mon, 28 Mar 2011 09:34:10 +0000 (11:34 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 30 Mar 2011 15:54:44 +0000 (11:54 -0400)
commit83be7e52d46a5b3a9955a38a9597bf1de1851ea7
tree665164261531c284b5dc5922cd42bc503e1d40ff
parent4dfe22f5f24345511c378272189b7504d67767fb
xen/balloon: Clarify credit calculation

Move credit calculation to current_target()
and rename it to current_credit().

Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/balloon.c