Commit 06f521d5 authored by Daniel Kiper's avatar Daniel Kiper Committed by Konrad Rzeszutek Wilk

xen/balloon: Removal of driver_pages

Removal of driver_pages (I do not have seen any references to it).
Signed-off-by: default avatarDaniel Kiper <dkiper@net-space.pl>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 38eaeb0f
...@@ -78,8 +78,7 @@ ...@@ -78,8 +78,7 @@
/* /*
* Protects atomic reservation decrease/increase against concurrent increases. * Protects atomic reservation decrease/increase against concurrent increases.
* Also protects non-atomic updates of current_pages and driver_pages, and * Also protects non-atomic updates of current_pages and balloon lists.
* balloon lists.
*/ */
DEFINE_SPINLOCK(xen_reservation_lock); DEFINE_SPINLOCK(xen_reservation_lock);
......
...@@ -70,11 +70,6 @@ struct balloon_stats { ...@@ -70,11 +70,6 @@ struct balloon_stats {
/* We aim for 'current allocation' == 'target allocation'. */ /* We aim for 'current allocation' == 'target allocation'. */
unsigned long current_pages; unsigned long current_pages;
unsigned long target_pages; unsigned long target_pages;
/*
* Drivers may alter the memory reservation independently, but they
* must inform the balloon driver so we avoid hitting the hard limit.
*/
unsigned long driver_pages;
/* Number of pages in high- and low-memory balloons. */ /* Number of pages in high- and low-memory balloons. */
unsigned long balloon_low; unsigned long balloon_low;
unsigned long balloon_high; unsigned long balloon_high;
...@@ -404,7 +399,6 @@ static int __init balloon_init(void) ...@@ -404,7 +399,6 @@ static int __init balloon_init(void)
balloon_stats.target_pages = balloon_stats.current_pages; balloon_stats.target_pages = balloon_stats.current_pages;
balloon_stats.balloon_low = 0; balloon_stats.balloon_low = 0;
balloon_stats.balloon_high = 0; balloon_stats.balloon_high = 0;
balloon_stats.driver_pages = 0UL;
init_timer(&balloon_timer); init_timer(&balloon_timer);
balloon_timer.data = 0; balloon_timer.data = 0;
...@@ -462,7 +456,6 @@ module_exit(balloon_exit); ...@@ -462,7 +456,6 @@ module_exit(balloon_exit);
BALLOON_SHOW(current_kb, "%lu\n", PAGES2KB(balloon_stats.current_pages)); BALLOON_SHOW(current_kb, "%lu\n", PAGES2KB(balloon_stats.current_pages));
BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low)); BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low));
BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high)); BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high));
BALLOON_SHOW(driver_kb, "%lu\n", PAGES2KB(balloon_stats.driver_pages));
static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr, static ssize_t show_target_kb(struct sys_device *dev, struct sysdev_attribute *attr,
char *buf) char *buf)
...@@ -531,7 +524,6 @@ static struct attribute *balloon_info_attrs[] = { ...@@ -531,7 +524,6 @@ static struct attribute *balloon_info_attrs[] = {
&attr_current_kb.attr, &attr_current_kb.attr,
&attr_low_kb.attr, &attr_low_kb.attr,
&attr_high_kb.attr, &attr_high_kb.attr,
&attr_driver_kb.attr,
NULL NULL
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment