vserver 1.9.5.x5
[linux-2.6.git] / arch / i386 / mm / highmem.c
index 5817532..2216986 100644 (file)
@@ -3,7 +3,7 @@
 void *kmap(struct page *page)
 {
        might_sleep();
-       if (page < highmem_start_page)
+       if (!PageHighMem(page))
                return page_address(page);
        return kmap_high(page);
 }
@@ -12,7 +12,7 @@ void kunmap(struct page *page)
 {
        if (in_interrupt())
                BUG();
-       if (page < highmem_start_page)
+       if (!PageHighMem(page))
                return;
        kunmap_high(page);
 }
@@ -32,7 +32,7 @@ void *kmap_atomic(struct page *page, enum km_type type)
 
        /* even !CONFIG_PREEMPT needs this, for in_atomic in do_page_fault */
        inc_preempt_count();
-       if (page < highmem_start_page)
+       if (!PageHighMem(page))
                return page_address(page);
 
        idx = type + KM_TYPE_NR*smp_processor_id();