/* VM /proc information for memory */
extern unsigned long totalram_pages;
+
+#ifndef MODULE
extern unsigned long totalhigh_pages;
+#define inc_totalhigh_pages() (totalhigh_pages++)
+#define dec_totalhigh_pages() (totalhigh_pages--)
+#else
+#define inc_totalhigh_pages() ((void)0)
+#define dec_totalhigh_pages() ((void)0)
+#endif
/* List of ballooned pages, threaded through the mem_map array. */
static LIST_HEAD(ballooned_pages);
if (PageHighMem(page)) {
list_add_tail(PAGE_TO_LIST(page), &ballooned_pages);
bs.balloon_high++;
- totalhigh_pages--;
+ dec_totalhigh_pages();
} else {
list_add(PAGE_TO_LIST(page), &ballooned_pages);
bs.balloon_low++;
if (PageHighMem(page)) {
bs.balloon_high--;
- totalhigh_pages++;
+ inc_totalhigh_pages();
}
else
bs.balloon_low--;