diff options
Diffstat (limited to 'drivers/xen/balloon.c')
-rw-r--r-- | drivers/xen/balloon.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index 8c83abc73400..526c191e84ea 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/pagemap.h> | 41 | #include <linux/pagemap.h> |
42 | #include <linux/highmem.h> | 42 | #include <linux/highmem.h> |
43 | #include <linux/mutex.h> | 43 | #include <linux/mutex.h> |
44 | #include <linux/highmem.h> | ||
45 | #include <linux/list.h> | 44 | #include <linux/list.h> |
46 | #include <linux/sysdev.h> | 45 | #include <linux/sysdev.h> |
47 | 46 | ||
@@ -123,14 +122,7 @@ static struct timer_list balloon_timer; | |||
123 | static void scrub_page(struct page *page) | 122 | static void scrub_page(struct page *page) |
124 | { | 123 | { |
125 | #ifdef CONFIG_XEN_SCRUB_PAGES | 124 | #ifdef CONFIG_XEN_SCRUB_PAGES |
126 | if (PageHighMem(page)) { | 125 | clear_highpage(page); |
127 | void *v = kmap(page); | ||
128 | clear_page(v); | ||
129 | kunmap(v); | ||
130 | } else { | ||
131 | void *v = page_address(page); | ||
132 | clear_page(v); | ||
133 | } | ||
134 | #endif | 126 | #endif |
135 | } | 127 | } |
136 | 128 | ||