vserver 1.9.5.x5
[linux-2.6.git] / arch / sparc / mm / highmem.c
index 8f9eb04..c85d492 100644 (file)
@@ -36,7 +36,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();