]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/xen/balloon.c
atomic: fix a typo in atomic_long_xchg()
[linux-2.6-omap-h63xx.git] / drivers / xen / balloon.c
index 8c83abc73400c48ee6a21013af1548de8f275f57..526c191e84ea9cfd32d0a6252e27046a90cfc6f4 100644 (file)
@@ -41,7 +41,6 @@
 #include <linux/pagemap.h>
 #include <linux/highmem.h>
 #include <linux/mutex.h>
-#include <linux/highmem.h>
 #include <linux/list.h>
 #include <linux/sysdev.h>
 
@@ -123,14 +122,7 @@ static struct timer_list balloon_timer;
 static void scrub_page(struct page *page)
 {
 #ifdef CONFIG_XEN_SCRUB_PAGES
-       if (PageHighMem(page)) {
-               void *v = kmap(page);
-               clear_page(v);
-               kunmap(v);
-       } else {
-               void *v = page_address(page);
-               clear_page(v);
-       }
+       clear_highpage(page);
 #endif
 }