X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc%2Fhighmem.h;h=7cda32eb123763bff3abd2aee8bee35e67d42ac4;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=928f8447ae7fc09fb79d3c3feba615c8e0a99b40;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-ppc/highmem.h b/include/asm-ppc/highmem.h index 928f8447a..7cda32eb1 100644 --- a/include/asm-ppc/highmem.h +++ b/include/asm-ppc/highmem.h @@ -56,7 +56,7 @@ extern void kunmap_high(struct page *page); static inline void *kmap(struct page *page) { might_sleep(); - if (page < highmem_start_page) + if (!PageHighMem(page)) return page_address(page); return kmap_high(page); } @@ -64,7 +64,7 @@ static inline void *kmap(struct page *page) static inline void kunmap(struct page *page) { BUG_ON(in_interrupt()); - if (page < highmem_start_page) + if (!PageHighMem(page)) return; kunmap_high(page); } @@ -82,7 +82,7 @@ static inline 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();